AP_Notify: Represent the base of ASCII numeric code with letters.

This commit is contained in:
murata 2017-01-27 01:58:59 +09:00 committed by Tom Pittenger
parent 1a34221db9
commit 315f7c6a9a

View File

@ -459,8 +459,8 @@ void Display::update_gps(uint8_t r)
void Display::update_gps_sats(uint8_t r)
{
draw_text(COLUMN(0), ROW(r), "Sats:");
draw_char(COLUMN(8), ROW(r), (AP_Notify::flags.gps_num_sats / 10) + 48);
draw_char(COLUMN(9), ROW(r), (AP_Notify::flags.gps_num_sats % 10) + 48);
draw_char(COLUMN(8), ROW(r), (AP_Notify::flags.gps_num_sats / 10) + '0');
draw_char(COLUMN(9), ROW(r), (AP_Notify::flags.gps_num_sats % 10) + '0');
}
void Display::update_ekf(uint8_t r)