mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-12 20:58:36 -07:00
GPS app matchunit --nobuild
This commit is contained in:
4
applications/external/gps_nmea/gps.c
vendored
4
applications/external/gps_nmea/gps.c
vendored
@@ -86,10 +86,10 @@ static void render_callback(Canvas* const canvas, void* context) {
|
||||
|
||||
switch(gps_uart->speed_units) {
|
||||
case KPH:
|
||||
snprintf(buffer, 64, "%.2f km", (double)(gps_uart->status.speed * KNOTS_TO_KPH));
|
||||
snprintf(buffer, 64, "%.2f km/h", (double)(gps_uart->status.speed * KNOTS_TO_KPH));
|
||||
break;
|
||||
case MPH:
|
||||
snprintf(buffer, 64, "%.2f mi", (double)(gps_uart->status.speed * KNOTS_TO_MPH));
|
||||
snprintf(buffer, 64, "%.2f mi/h", (double)(gps_uart->status.speed * KNOTS_TO_MPH));
|
||||
break;
|
||||
case KNOTS:
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user