|
@@ -137,6 +137,11 @@ void disp_func_coord(__attribute__ ((unused)) unsigned char changed) {
|
|
|
xsprintf(disp.line2, PSTR("%3.6f%c"), (location.lon < 0)?(-location.lon):location.lon, (location.lon < 0)?'W':'E');
|
|
|
}
|
|
|
|
|
|
+void disp_func_voltage(__attribute__ ((unused)) unsigned char changed) {
|
|
|
+ strcpy_P(disp.line1, PSTR("Batt. voltage"));
|
|
|
+ xsprintf(disp.line2, PSTR("%1.2fV"), System.bat_volt);
|
|
|
+}
|
|
|
+
|
|
|
void disp_func_ele_sat(__attribute__ ((unused)) unsigned char changed) {
|
|
|
if (System.location_valid == LOC_INVALID) {
|
|
|
strcpy_P(disp.line1, PSTR("ele = ???"));
|
|
@@ -163,6 +168,7 @@ void (*__flash const disp_funcs[])(unsigned char) = {
|
|
|
[DISPLAY_STATE_MAIN_DEFAULT] = disp_func_main_default,
|
|
|
[DISPLAY_STATE_COORD] = disp_func_coord,
|
|
|
[DISPLAY_STATE_ELE_SAT] = disp_func_ele_sat,
|
|
|
+ [DISPLAY_STATE_VOLTAGE] = disp_func_voltage,
|
|
|
[DISPLAY_STATE_MAIN_MENU] = disp_func_main_menu,
|
|
|
};
|
|
|
|