fixed KILL_MOTORS cflag to work with MKK speed controllers and Lisa board

This commit is contained in:
Eric Parsonage
2010-08-06 17:52:25 +00:00
parent 76f63ddcb7
commit 78b9af0968
@@ -49,7 +49,11 @@ void tim2_irq_handler(void) {
TIM_ClearITPendingBit(TIM2, TIM_IT_Update);
actuators_mkk.idx++;
if (actuators_mkk.idx<ACTUATORS_MKK_NB) {
#ifdef KILL_MOTORS
DeviceBuf[0] = 0;
#else
DeviceBuf[0] = supervision.commands[actuators_mkk.idx];
#endif
DeviceTransmit(actuators_addr[actuators_mkk.idx], 1, &actuators_mkk.i2c_done);
}
else {