Browse Source

2020.05.18 / Folus Wen

Actions:
1. EVSE/Modularization/Module_Upgrade.c warning issue fix.

Files:
1. As follow commit history

Image version: D0.00.XX.XXXX.XX
Image checksum: XXXXXXXX

Hardware PWB P/N : XXXXXXX
Hardware Version : XXXXXXX
FolusWen 4 years ago
parent
commit
414c6f2bf1
1 changed files with 3 additions and 3 deletions
  1. 3 3
      EVSE/Modularization/Module_Upgrade.c

+ 3 - 3
EVSE/Modularization/Module_Upgrade.c

@@ -1010,16 +1010,16 @@ int Put_CCS_image(char *SourcePath, unsigned char TargetAddr)
 
     //If ID of target EV board is 1, the IP address will be 192.168.0.21,
     //if ID of target EV board is 2, the IP address will be 192.168.0.22.
-    sprintf(CCSIpAddress,"192.168.0.2%d", TargetAddr);
+    sprintf((char*)CCSIpAddress,"192.168.0.2%d", TargetAddr);
 
     //Using ftpput command to transfer CCS upgrade image,
     //User name     : root
     //User password : y42j/4cj84
     //Destination   : /root/ccs.image
-    sprintf(ftpcmdbuf,"ftpput -u root -p y42j/4cj84 %s /root/ccs.image %s",
+    sprintf((char*)ftpcmdbuf,"ftpput -u root -p y42j/4cj84 %s /root/ccs.image %s",
     CCSIpAddress, SourcePath);
 
-    if(system(ftpcmdbuf) != 0)
+    if(system((char*)ftpcmdbuf) != 0)
     {
         DEBUG_ERROR("Update CCS NG - FTP put CCS upgrade image to CCS board %d fail\n", TargetAddr);
         return FAIL;