mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 05:03:34 +08:00
pwm_out_rc_in fix sign-compare
This commit is contained in:
@@ -301,7 +301,7 @@ void serial_callback(void *context, char *buffer, size_t num_bytes)
|
|||||||
if (num_bytes > 0) {
|
if (num_bytes > 0) {
|
||||||
mavlink_message_t msg;
|
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
|
// The MAVLink app doesn't use the internal buffer functions
|
||||||
// and hence the first port can be used here.
|
// and hence the first port can be used here.
|
||||||
if (mavlink_parse_char(MAVLINK_COMM_0, buffer[i], &msg, &serial_status)) {
|
if (mavlink_parse_char(MAVLINK_COMM_0, buffer[i], &msg, &serial_status)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user