# HG changeset patch # User Ideenmodellierer # Date 1618334474 -7200 # Node ID 0fc1b47d2482e0156ce52f991b5b50443c5b4559 # Parent e58f81cb25a7127043372e741ae0a533b049539f 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. diff -r e58f81cb25a7 -r 0fc1b47d2482 Discovery/Src/tMenuEditSystem.c --- 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; diff -r e58f81cb25a7 -r 0fc1b47d2482 Discovery/Src/text_multilanguage.c --- 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";