Selaa lähdekoodia

2020-12-29 / Wendell
Actions
1. dispenser firmware upgrade function
2. power cabinet rc2 firmware upgrade function
3. connector maximum output current is determined by model name
4. fix account balance will be clean to 0 affter reveived user price
5. modify default MaxChargingCurrent = 0
6. fix when one gun is charging completed, another gun can not start charging

Files
1. As follow commit history

Image version : D0.08.XX.XXXX.XX

Wendell 4 vuotta sitten
vanhempi
commit
4dd1210932
2 muutettua tiedostoa jossa 5 lisäystä ja 4 poistoa
  1. 5 4
      EVSE/Projects/DO360/Apps/main.c
  2. BIN
      EVSE/Projects/DO360/Images/ramdisk.gz

+ 5 - 4
EVSE/Projects/DO360/Apps/main.c

@@ -1143,11 +1143,11 @@ void InitEthernet()
 				}
 			}
 
-			bool ethResult = YES;
+            bool ethResult = YES;
 
-			if(ShmStatusCodeData->InfoCode.InfoEvents.bits.InternetDisconnectViaEthernet)
-				ethResult = NO;
-			else
+            if(ShmStatusCodeData->InfoCode.InfoEvents.bits.InternetDisconnectViaEthernet)
+                ethResult = NO;
+            else
 			{
 				system("/sbin/ifmetric eth0 0");
 
@@ -6494,6 +6494,7 @@ int main(void)
 						PRINTF_FUNC("=============Smart Charging : _REASSIGNED_COMP============= Step 6 \n");
 						ShmSysConfigAndInfo->SysInfo.MainChargingMode = _MAIN_CHARGING_MODE_AVER;
 						ShmSysConfigAndInfo->SysInfo.ReAssignedFlag = _REASSIGNED_NONE;
+						setChargerMode(gun_index, MODE_PRECHARGE);
 					}
 
 					//PRINTF_FUNC("CurGunSelected = %d, gun_index = %d \n", ShmSysConfigAndInfo->SysInfo.CurGunSelected, gun_index);

BIN
EVSE/Projects/DO360/Images/ramdisk.gz