Skip to content
Snippets Groups Projects
Commit d7c9f5c1 authored by alessandro's avatar alessandro Committed by Beat Küng
Browse files

tap_esc: paranoid check

parent c869fa34
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment