|
@@ -589,8 +589,21 @@ int main(int argc, char *argv[]) {
|
|
|
strcpy((char *)&ShmSysConfigAndInfo->SysConfig.OcppServerURL,OcppServerURL);
|
|
|
strcpy((char *)&ShmSysConfigAndInfo->SysConfig.ChargeBoxId,ChargeBoxId);
|
|
|
}
|
|
|
+ struct SysConfigData SysConfig;
|
|
|
+ unsigned char *ptr;
|
|
|
+// ptr=malloc(sizeof(struct SysConfigData));
|
|
|
+// if(ptr==NULL)
|
|
|
+// {
|
|
|
+// #ifdef SystemLogMessage
|
|
|
+// DEBUG_ERROR("malloc for SysConfigData NG");
|
|
|
+// #endif
|
|
|
+// return 0;
|
|
|
+// }
|
|
|
+ memcpy(&SysConfig, &ShmSysConfigAndInfo->SysConfig, sizeof(struct SysConfigData));
|
|
|
+// memset(ptr,0,sizeof(struct SysConfigData));
|
|
|
+// memset(&SysConfig,0,sizeof(struct SysConfigData));
|
|
|
|
|
|
- int result = StoreUsrConfigData(&ShmSysConfigAndInfo->SysConfig);
|
|
|
+ int result = StoreUsrConfigData(&SysConfig);
|
|
|
if(result != 1){
|
|
|
#ifdef SystemLogMessage
|
|
|
StoreLogMsg("[WebService]StoreUsrConfigData: normal NG");
|
|
@@ -601,6 +614,7 @@ int main(int argc, char *argv[]) {
|
|
|
StoreLogMsg("[WebService]StoreUsrConfigData: normal OK");
|
|
|
#endif
|
|
|
}
|
|
|
+// free(ptr);
|
|
|
|
|
|
#ifdef SystemLogMessage
|
|
|
DEBUG_INFO("WebServiceConfig update OK");
|