Mercurial > public > ostc4
diff Discovery/Src/tMenuEditSystem.c @ 435:8851702173e0 Improve_BatteryGasGauge
Bugfix display battery voltage in maintainance menu:
Battery voltage was displayed in the same line as the (situation depending) restorage option for last known battery charge status
author | ideenmodellierer |
---|---|
date | Sun, 23 Feb 2020 21:17:17 +0100 |
parents | 2b31cf1ebbcc |
children | f2c4f5c90540 |
line wrap: on
line diff
--- a/Discovery/Src/tMenuEditSystem.c Sun Feb 23 21:13:28 2020 +0100 +++ b/Discovery/Src/tMenuEditSystem.c Sun Feb 23 21:17:17 2020 +0100 @@ -1521,8 +1521,8 @@ text[1] = TXT2BYTE_WarnBatteryLow; text[2] = 0; snprintf(&text[2],10,": %01.2fV",stateRealGetPointer()->lifeData.battery_voltage); - write_label_var( 30, 800, ME_Y_LINE4, &FontT42, text); - + write_label_var( 30, 800, ME_Y_LINE5, &FontT42, text); + snprintf(&text[0],30,"Code: %X",getLicence()); write_label_var( 30, 800, ME_Y_LINE6, &FontT42, text); break;