|
@@ -147,6 +147,11 @@ void disp_func_temperature(__attribute__ ((unused)) unsigned char changed) {
|
|
|
xsprintf(disp.line2, PSTR("%.1f C"), System.temperature);
|
|
|
}
|
|
|
|
|
|
+void disp_gpx_points_written(__attribute__ ((unused)) unsigned char changed) {
|
|
|
+ strcpy_P(disp.line1, PSTR("GPX points"));
|
|
|
+ xsprintf(disp.line2, PSTR("written: %ld"), System.gpx_points_written_nb);
|
|
|
+}
|
|
|
+
|
|
|
void disp_func_ele_sat(__attribute__ ((unused)) unsigned char changed) {
|
|
|
if (System.location_valid == LOC_INVALID) {
|
|
|
strcpy_P(disp.line1, PSTR("ele = ???"));
|
|
@@ -176,6 +181,7 @@ void (*__flash const disp_funcs[])(unsigned char) = {
|
|
|
[DISPLAY_STATE_VOLTAGE] = disp_func_voltage,
|
|
|
[DISPLAY_STATE_MAIN_MENU] = disp_func_main_menu,
|
|
|
[DISPLAY_STATE_TEMPERATURE] = disp_func_temperature,
|
|
|
+ [DISPLAY_STATE_GPX_POINTS_WRITTEN] = disp_gpx_points_written,
|
|
|
};
|
|
|
|
|
|
void display_refresh(unsigned char newstate) {
|