Mercurial > public > ostc4
comparison Discovery/Src/tMenuEditSystem.c @ 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 | 1c95f811967c |
children | f4b553da620a |
comparison
equal
deleted
inserted
replaced
645:e58f81cb25a7 | 646:0fc1b47d2482 |
---|---|
840 | 840 |
841 text_content[0] = TXT_2BYTE; | 841 text_content[0] = TXT_2BYTE; |
842 text_content[1] = TXT2BYTE_ChargeCycles; | 842 text_content[1] = TXT2BYTE_ChargeCycles; |
843 text_content[2] = 0; | 843 text_content[2] = 0; |
844 write_label_var( 20, 800, ME_Y_LINE1, &FontT42, text_content); | 844 write_label_var( 20, 800, ME_Y_LINE1, &FontT42, text_content); |
845 snprintf(text_content,80,"%ld (%ld)",stateDeviceGetPointer()->batteryChargeCycles.value_int32,stateDeviceGetPointer()->batteryChargeCompleteCycles.value_int32); | 845 /* snprintf(text_content,80,"%ld (%ld)",stateDeviceGetPointer()->batteryChargeCycles.value_int32,stateDeviceGetPointer()->batteryChargeCompleteCycles.value_int32); |
846 write_label_var( 20, 800, ME_Y_LINE2, &FontT42, text_content); | 846 write_label_var( 20, 800, ME_Y_LINE2, &FontT42, text_content); */ |
847 | 847 |
848 translateDate(stateDeviceGetPointer()->batteryChargeCycles.date_rtc_dr, &Sdate); | 848 translateDate(stateDeviceGetPointer()->batteryChargeCycles.date_rtc_dr, &Sdate); |
849 translateDate(stateDeviceGetPointer()->batteryChargeCompleteCycles.date_rtc_dr, &Sdate2); | 849 translateDate(stateDeviceGetPointer()->batteryChargeCompleteCycles.date_rtc_dr, &Sdate2); |
850 snprintf(text_content,80,"%u.%u.20%02u (%u.%u.20%02u)",Sdate.Date,Sdate.Month,Sdate.Year, Sdate2.Date,Sdate2.Month,Sdate2.Year); | 850 snprintf(text_content,80,"%u.%u.20%02u (%u.%u.20%02u)",Sdate.Date,Sdate.Month,Sdate.Year, Sdate2.Date,Sdate2.Month,Sdate2.Year); |
851 write_label_var( 20, 800, ME_Y_LINE3, &FontT42, text_content); | 851 write_label_var( 20, 800, ME_Y_LINE2, &FontT42, text_content); |
852 | 852 |
853 text_content[0] = TXT_2BYTE; | 853 text_content[0] = TXT_2BYTE; |
854 text_content[1] = TXT2BYTE_LowestVoltage; | 854 text_content[1] = TXT2BYTE_LowestVoltage; |
855 text_content[2] = 0; | 855 text_content[2] = 0; |
856 write_label_var( 20, 800, ME_Y_LINE4, &FontT42, text_content); | 856 write_label_var( 20, 800, ME_Y_LINE4, &FontT42, text_content); |