AP_Notify: fixed build warning

This commit is contained in:
Andrew Tridgell 2018-02-07 16:51:04 +11:00
parent 4886ffbf8a
commit 7d2e3c0d04

View File

@ -495,7 +495,7 @@ void Display::update_gps(uint8_t r)
fixname = gpsfixname[0];
break;
}
snprintf(msg, DISPLAY_MESSAGE_SIZE, "GPS:%-5s Sats:%2u", fixname, AP_Notify::flags.gps_num_sats) ;
snprintf(msg, DISPLAY_MESSAGE_SIZE, "GPS:%-5s Sats:%2u", fixname, (unsigned)AP_Notify::flags.gps_num_sats) ;
draw_text(COLUMN(0), ROW(r), msg);
}