From 01101ecef20c71f33d861822739e0ed0871b3578 Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Sat, 25 Jul 2020 12:26:10 -0500 Subject: [PATCH] position string formatting --- firmware/application/apps/ui_adsb_rx.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/application/apps/ui_adsb_rx.cpp b/firmware/application/apps/ui_adsb_rx.cpp index 1fff7e07..52c55756 100644 --- a/firmware/application/apps/ui_adsb_rx.cpp +++ b/firmware/application/apps/ui_adsb_rx.cpp @@ -231,9 +231,9 @@ void ADSBRxView::on_frame(const ADSBFrameMessage * message) { if (entry.pos.valid) { str_info = "Alt:" + to_string_dec_uint(entry.pos.altitude) + - " Lat" + to_string_dec_int(entry.pos.latitude) + + " Lat:" + to_string_dec_int(entry.pos.latitude) + "." + to_string_dec_int((int)abs(entry.pos.latitude * 1000) % 100, 2, '0') + - " Lon" + to_string_dec_int(entry.pos.longitude) + + " Lon:" + to_string_dec_int(entry.pos.longitude) + "." + to_string_dec_int((int)abs(entry.pos.longitude * 1000) % 100, 2, '0'); entry.set_info_string(str_info);