Mercurial > public > ostc4
changeset 646:0fc1b47d2482
Remove battery charge counter from information menu:
Due to long timeouts during charging (e.g. temperature break) multiple charge cycles could be counted without removment of the charger. To avoid confusions the visualization of this parameter has been removed.
author | Ideenmodellierer |
---|---|
date | Tue, 13 Apr 2021 19:21:14 +0200 |
parents | e58f81cb25a7 |
children | 15f6f0b5786c |
files | Discovery/Src/tMenuEditSystem.c Discovery/Src/text_multilanguage.c |
diffstat | 2 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/Discovery/Src/tMenuEditSystem.c Tue Apr 13 19:18:32 2021 +0200 +++ b/Discovery/Src/tMenuEditSystem.c Tue Apr 13 19:21:14 2021 +0200 @@ -842,13 +842,13 @@ text_content[1] = TXT2BYTE_ChargeCycles; text_content[2] = 0; write_label_var( 20, 800, ME_Y_LINE1, &FontT42, text_content); - snprintf(text_content,80,"%ld (%ld)",stateDeviceGetPointer()->batteryChargeCycles.value_int32,stateDeviceGetPointer()->batteryChargeCompleteCycles.value_int32); - write_label_var( 20, 800, ME_Y_LINE2, &FontT42, text_content); + /* snprintf(text_content,80,"%ld (%ld)",stateDeviceGetPointer()->batteryChargeCycles.value_int32,stateDeviceGetPointer()->batteryChargeCompleteCycles.value_int32); + write_label_var( 20, 800, ME_Y_LINE2, &FontT42, text_content); */ translateDate(stateDeviceGetPointer()->batteryChargeCycles.date_rtc_dr, &Sdate); translateDate(stateDeviceGetPointer()->batteryChargeCompleteCycles.date_rtc_dr, &Sdate2); snprintf(text_content,80,"%u.%u.20%02u (%u.%u.20%02u)",Sdate.Date,Sdate.Month,Sdate.Year, Sdate2.Date,Sdate2.Month,Sdate2.Year); - write_label_var( 20, 800, ME_Y_LINE3, &FontT42, text_content); + write_label_var( 20, 800, ME_Y_LINE2, &FontT42, text_content); text_content[0] = TXT_2BYTE; text_content[1] = TXT2BYTE_LowestVoltage;
--- a/Discovery/Src/text_multilanguage.c Tue Apr 13 19:18:32 2021 +0200 +++ b/Discovery/Src/text_multilanguage.c Tue Apr 13 19:21:14 2021 +0200 @@ -1149,11 +1149,11 @@ static uint8_t text_ES_Usage_Environment[] = "Condiciones ambientales"; // Menu SYS2 sub Information -static uint8_t text_EN_ChargeCycles[] = "Charge cycles (complete)"; -static uint8_t text_DE_ChargeCycles[] = "Ladezyklen (vollständig)"; -static uint8_t text_FR_ChargeCycles[] = "Cycles de charge (complets)"; -static uint8_t text_IT_ChargeCycles[] = "Ricarica completata"; -static uint8_t text_ES_ChargeCycles[] = "Carga completada"; +static uint8_t text_EN_ChargeCycles[] = "Last charging cycle (complete)"; +static uint8_t text_DE_ChargeCycles[] = "Letzter Ladezyklus (vollständig)"; +static uint8_t text_FR_ChargeCycles[] = "Dernier cycles de charge (complets)"; +static uint8_t text_IT_ChargeCycles[] = "Ultimo ciclo di ricarica (completata)"; +static uint8_t text_ES_ChargeCycles[] = "Ultimo ciclo de carga (completada)"; // Menu SYS2 sub Information static uint8_t text_EN_LowestVoltage[] = "Lowest battery voltage";