diff Discovery/Src/tMenuEditSystem.c @ 404:e729b8e7654d Improment_NVM

Bugfix: display of time of minimum voltag: Missing call of date translation => date of charge cycle was shown
author ideenmodellierer
date Sun, 12 Jan 2020 17:45:36 +0100
parents ebc2b571a0b9
children 2b31cf1ebbcc
line wrap: on
line diff
--- a/Discovery/Src/tMenuEditSystem.c	Sun Jan 05 14:57:50 2020 +0000
+++ b/Discovery/Src/tMenuEditSystem.c	Sun Jan 12 17:45:36 2020 +0100
@@ -1258,6 +1258,7 @@
         text_content[2] = 0;
         write_label_var(  20, 800, ME_Y_LINE4, &FontT42, text_content);
 
+        translateDate(stateDeviceGetPointer()->voltageMinimum.date_rtc_dr, &Sdate);
         voltage = ((float)stateDeviceGetPointer()->voltageMinimum.value_int32) / 1000;
         snprintf(text_content,80,"%0.3fV (%u.%u.20%02u)",voltage, Sdate.Date,Sdate.Month,Sdate.Year);
         write_label_var(  20, 800, ME_Y_LINE5, &FontT42, text_content);