Ver código fonte

2022-12-19/Jerry Wang
[Module_Upgrade]
Action:
1. Extend the command string buffer to 512 bytes in Upgrade_Flash() function.

File:
1. EVSE/Modularization/Module_Upgrade.c
--> Action 1

Jerry Wang 2 anos atrás
pai
commit
822ae4eb38
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      EVSE/Modularization/Module_Upgrade.c

+ 1 - 1
EVSE/Modularization/Module_Upgrade.c

@@ -175,7 +175,7 @@ int Upgrade_Flash(unsigned int Type,char *SourcePath,char *ModelName)
 {
     int result = FAIL;
 
-    char cmdBuf[128];
+    char cmdBuf[512];
     long int MaxLen=48*1024*1024, ImageLen=0;
     unsigned int ImageCRC=0, DataLength=0;
     int wrd,fd;