changeset 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 44cb4e858643
children 73db1565220b
files Discovery/Src/tMenuEditSystem.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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);