From a3ccfe52ee2691f3fcb710a7abc23278a80d8f41 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Mon, 28 Aug 2017 16:07:35 -0400 Subject: [PATCH] pwm_out_rc_in fix sign-compare --- src/drivers/pwm_out_rc_in/pwm_out_rc_in.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/pwm_out_rc_in/pwm_out_rc_in.cpp b/src/drivers/pwm_out_rc_in/pwm_out_rc_in.cpp index 876480a833..ea4a8a91c6 100644 --- a/src/drivers/pwm_out_rc_in/pwm_out_rc_in.cpp +++ b/src/drivers/pwm_out_rc_in/pwm_out_rc_in.cpp @@ -301,7 +301,7 @@ void serial_callback(void *context, char *buffer, size_t num_bytes) if (num_bytes > 0) { mavlink_message_t msg; - for (int i = 0; i < num_bytes; ++i) { + for (size_t i = 0; i < num_bytes; ++i) { // The MAVLink app doesn't use the internal buffer functions // and hence the first port can be used here. if (mavlink_parse_char(MAVLINK_COMM_0, buffer[i], &msg, &serial_status)) {