Browse Source

[Improve][AW-CCS][Module_InternalComm.c]
2022-04-27 / EASON YANG
Action
1. Improve: Output current log print-out.
2. Improve: Input voltage log print-out.

File
1. Module_InternalComm.c
Action 1
Action 2

FIRMWARE VERSION: B0.62.XX.XXXX.PX

8009 2 years ago
parent
commit
a7cc3393c8
1 changed files with 6 additions and 6 deletions
  1. 6 6
      EVSE/Projects/AW-CCS/Apps/Module_InternalComm.c

+ 6 - 6
EVSE/Projects/AW-CCS/Apps/Module_InternalComm.c

@@ -2144,9 +2144,9 @@ int main(void)
 				//==================================================
 				// Case 11: Query primary Out put current config
 				//==================================================
-				if((previousCharger.gun_info[gun_index].outputCurrent.L1N_L12[0] != ShmCharger->gun_info[gun_index].outputCurrent.L1N_L12[0]) ||
-				   (previousCharger.gun_info[gun_index].outputCurrent.L2N_L23[0] != ShmCharger->gun_info[gun_index].outputCurrent.L2N_L23[0]) ||
-				   (previousCharger.gun_info[gun_index].outputCurrent.L3N_L31[0] != ShmCharger->gun_info[gun_index].outputCurrent.L3N_L31[0]))
+				if(((int)previousCharger.gun_info[gun_index].outputCurrent.L1N_L12[0] != (int)ShmCharger->gun_info[gun_index].outputCurrent.L1N_L12[0]) ||
+				   ((int)previousCharger.gun_info[gun_index].outputCurrent.L2N_L23[0] != (int)ShmCharger->gun_info[gun_index].outputCurrent.L2N_L23[0]) ||
+				   ((int)previousCharger.gun_info[gun_index].outputCurrent.L3N_L31[0] != (int)ShmCharger->gun_info[gun_index].outputCurrent.L3N_L31[0]))
 				{
 					DEBUG_INFO("*******************************************\n");
 					DEBUG_INFO("***** High priority polling : Case 11 *****\n");
@@ -2169,9 +2169,9 @@ int main(void)
 				//==================================================
 				// Case 1: Query primary In put voltage
 				//==================================================
-				if((previousCharger.gun_info[gun_index].inputVoltage.L1N_L12 != ShmCharger->gun_info[gun_index].inputVoltage.L1N_L12) ||
-				   (previousCharger.gun_info[gun_index].inputVoltage.L2N_L23 != ShmCharger->gun_info[gun_index].inputVoltage.L2N_L23) ||
-				   (previousCharger.gun_info[gun_index].inputVoltage.L3N_L31 != ShmCharger->gun_info[gun_index].inputVoltage.L3N_L31))
+				if(((int)previousCharger.gun_info[gun_index].inputVoltage.L1N_L12 != (int)ShmCharger->gun_info[gun_index].inputVoltage.L1N_L12) ||
+				   ((int)previousCharger.gun_info[gun_index].inputVoltage.L2N_L23 != (int)ShmCharger->gun_info[gun_index].inputVoltage.L2N_L23) ||
+				   ((int)previousCharger.gun_info[gun_index].inputVoltage.L3N_L31 != (int)ShmCharger->gun_info[gun_index].inputVoltage.L3N_L31))
 				{
 					DEBUG_INFO("===========================================\n");
 					DEBUG_INFO("==== Normal priority polling : Case 1 =====\n");