comparison 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
comparison
equal deleted inserted replaced
434:f68f2c4d71c7 435:8851702173e0
1519 1519
1520 text[0] = TXT_2BYTE; 1520 text[0] = TXT_2BYTE;
1521 text[1] = TXT2BYTE_WarnBatteryLow; 1521 text[1] = TXT2BYTE_WarnBatteryLow;
1522 text[2] = 0; 1522 text[2] = 0;
1523 snprintf(&text[2],10,": %01.2fV",stateRealGetPointer()->lifeData.battery_voltage); 1523 snprintf(&text[2],10,": %01.2fV",stateRealGetPointer()->lifeData.battery_voltage);
1524 write_label_var( 30, 800, ME_Y_LINE4, &FontT42, text); 1524 write_label_var( 30, 800, ME_Y_LINE5, &FontT42, text);
1525 1525
1526 snprintf(&text[0],30,"Code: %X",getLicence()); 1526 snprintf(&text[0],30,"Code: %X",getLicence());
1527 write_label_var( 30, 800, ME_Y_LINE6, &FontT42, text); 1527 write_label_var( 30, 800, ME_Y_LINE6, &FontT42, text);
1528 break; 1528 break;
1529 1529
1530 } 1530 }