浏览代码

[Bug fixed][DM30][DW30][LCM]: If EV SoC is more then 80% when charging, the battery icon in the LCM will not twinkle.

2020.06.10 / TC Hsu

Actions: Correct the behavior of battery icon when SoC betweeon 80% and 100%, add the twinkle feature.

Image version    : N/A
Image checksum   : N/A

Hardware PWB P/N : N/A
Hardware Version : N/A

Files:

	modified:   EVSE/Projects/DM30/Apps/Module_LcmControl.c
	modified:   EVSE/Projects/DW30/Apps/Module_LcmControl.c
TC_Hsu 4 年之前
父节点
当前提交
fbd1361d18
共有 2 个文件被更改,包括 10 次插入0 次删除
  1. 5 0
      EVSE/Projects/DM30/Apps/Module_LcmControl.c
  2. 5 0
      EVSE/Projects/DW30/Apps/Module_LcmControl.c

+ 5 - 0
EVSE/Projects/DM30/Apps/Module_LcmControl.c

@@ -586,7 +586,12 @@ void ChangeBattMapAndValue(short page, int soc)
             ChangeDisplay2Value(__batt_map, _battery_cap_80);
         }
         else if (soc >= 80 && soc <= 100)
+        {
+            if (_battery_display_ani)
+                ChangeDisplay2Value(__batt_map, _battery_cap_80);
+            else
             ChangeDisplay2Value(__batt_map, _battery_cap_100);
+        }
     }
     else if (page == _LCM_COMPLETE)
     {

+ 5 - 0
EVSE/Projects/DW30/Apps/Module_LcmControl.c

@@ -586,7 +586,12 @@ void ChangeBattMapAndValue(short page, int soc)
             ChangeDisplay2Value(__batt_map, _battery_cap_80);
         }
         else if (soc >= 80 && soc <= 100)
+        {
+            if (_battery_display_ani)
+                ChangeDisplay2Value(__batt_map, _battery_cap_80);
+            else
             ChangeDisplay2Value(__batt_map, _battery_cap_100);
+        }
     }
     else if (page == _LCM_COMPLETE)
     {