Browse Source

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

master
murata 8 years ago committed by Tom Pittenger
parent
commit
315f7c6a9a
  1. 4
      libraries/AP_Notify/Display.cpp

4
libraries/AP_Notify/Display.cpp

@ -459,8 +459,8 @@ void Display::update_gps(uint8_t r) @@ -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)

Loading…
Cancel
Save