Explorar o código

2021-03-05 / Eason Yang
Action
Added : Added 5 seconds delay for upgrade file. Ocpp module needs sometime to respond message to central system.

File
1) main.c

Version : V0.67.XX.XXXX.XX

8009 %!s(int64=4) %!d(string=hai) anos
pai
achega
89ffc28638

+ 1 - 1
EVSE/Projects/AW-Regular/Apps/main.c

@@ -4483,7 +4483,7 @@ int main(void)
 								ShmOCPP20Data->SpMsg.bits.FirmwareStatusNotificationReq = ON;
 								DEBUG_WARN("Firmware upgrade fail.\n");
 								
-								sleep(1);
+								sleep(5);
 								system("rm -rvf /mnt/* ");
 								close(wtdFd);
 								system("/usr/bin/run_evse_restart.sh");

BIN=BIN
EVSE/Projects/AW-Regular/Images/FactoryDefaultConfig.bin


BIN=BIN
EVSE/Projects/AW-Regular/Images/ramdisk.gz


BIN=BIN
EVSE/rootfs/root/OcppBackend20