144,7 → 144,7 |
// Master Transmit |
case 0: // TWI_STATE_MOTOR_TX |
// skip motor if not used in mixer |
while ((mixerMatrix.motor[motor_write][MIX_THROTTLE] <= 0) && (motor_write < MAX_MOTORS)) |
while ((motorMixer.matrix[motor_write][MIX_THROTTLE] <= 0) && (motor_write < MAX_MOTORS)) |
motor_write++; |
if (motor_write >= MAX_MOTORS) { // writing finished, read now |
motor_write = 0; |
257,7 → 257,7 |
} |
|
for (i = 0; i < MAX_MOTORS; i++) { |
if (!motor[i].present && mixerMatrix.motor[i][MIX_THROTTLE] > 0) |
if (!motor[i].present && motorMixer.matrix[i][MIX_THROTTLE] > 0) |
printf("\n\r\n\r!! MISSING BL-CTRL: %d !!",i + 1); |
motor[i].error = 0; |
} |