reprappro / Marlin

Reprap FW with look ahead. SDcard and LCD support. It works on Gen6, Ultimaker, RAMPS and Sanguinololu
46 stars 66 forks source link

multiple materials compilation error #14

Open danielprint opened 11 years ago

danielprint commented 11 years ago

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

sakunamary commented 10 years ago

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

sakunamary commented 10 years ago

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 ....