tap_esc: paranoid check

This commit is contained in:
alessandro
2018-04-23 12:08:51 +02:00
committed by Beat Küng
parent c869fa3431
commit d7c9f5c101
+1 -1
View File
@@ -388,7 +388,7 @@ void TAP_ESC::send_esc_outputs(const uint16_t *pwm, const uint8_t motor_cnt)
int ret = tap_esc_common::send_packet(_uart_fd, packet, _responding_esc);
if (++_responding_esc == _channels_count) {
if (++_responding_esc >= _channels_count) {
_responding_esc = 0;
}