Marlin icon indicating copy to clipboard operation
Marlin copied to clipboard

multiple materials compilation error

Open danielprint opened this issue 12 years ago • 2 comments

ola, estou tentando implementar o codigo para ramps e alterei todosos pinos no pins.h porem mesmo com as configurações originais tenho encontrado o seguinte erro quando desejo definir multiple materiais:

In file included from temperature.h:26:0, from led.cpp:4: slave_comms.h: In function ‘void slaveStep(uint8_t, uint8_t)’: slave_comms.h:173:15: error: ‘SLAVE_CLOCK’ was not declared in this scop

I wonder where I am going wrong, fix it. thank you

danielprint avatar Jun 24 '13 19:06 danielprint

SLAVE_CLOCK can be finded in Pins.h #define SLAVE_CLOCK 16

sakunamary avatar Dec 06 '13 14:12 sakunamary

#include "slaveCommands.h" add #define SLAVE_CLOCK 16 into SLAVE_COMMSH.h,just like this ....

#define TIMEOUT 6 // ms - empirically set with reliability test (2 ms works, 1 doesn't...) #define SLAVE_BUF 64 #define SLAVE_BAUD 250000 #define SLAVE_CLOCK 16 //add here

everything OK ....

sakunamary avatar Dec 06 '13 14:12 sakunamary