|
@@ -6842,7 +6842,7 @@ end:
|
|
|
}
|
|
|
|
|
|
sendChangeAvailabilityConfirmation(uuid, comfirmstr);
|
|
|
-
|
|
|
+ system("fsync -d /dev/mtdblock13");
|
|
|
return result;
|
|
|
}
|
|
|
|
|
@@ -6947,7 +6947,7 @@ int handleClearCacheRequest(char *uuid, char *payload)
|
|
|
}
|
|
|
|
|
|
sendClearCacheConfirmation(uuid, comfirmstr);
|
|
|
-
|
|
|
+ system("fsync -d /dev/mtdblock13");
|
|
|
return result;
|
|
|
}
|
|
|
|
|
@@ -7504,6 +7504,7 @@ end:
|
|
|
}
|
|
|
|
|
|
sendClearChargingProfileConfirmation(uuid, comfirmstr);
|
|
|
+ system("fsync -d /dev/mtdblock13");
|
|
|
|
|
|
return result;
|
|
|
}
|
|
@@ -10554,6 +10555,7 @@ end:
|
|
|
}
|
|
|
|
|
|
sendSetChargingProfileConfirmation(uuid, comfirmstr);
|
|
|
+ system("fsync -d /dev/mtdblock13");
|
|
|
return result;
|
|
|
}
|
|
|
|
|
@@ -11262,7 +11264,6 @@ void handleStartTransactionResponse(char *payload, int gun_index)
|
|
|
|
|
|
if(!is_error(StartTransaction))
|
|
|
{
|
|
|
-
|
|
|
// Required data
|
|
|
sprintf((char *)ShmOCPP16Data->StartTransaction[gun_index].ResponseIdTagInfo.Status, "%s", json_object_get_string(json_object_object_get(json_object_object_get(StartTransaction,"idTagInfo"), "status")));
|
|
|
ShmOCPP16Data->StartTransaction[gun_index].ResponseTransactionId = json_object_get_int(json_object_object_get(StartTransaction,"transactionId"));
|
|
@@ -11311,6 +11312,7 @@ void handleStartTransactionResponse(char *payload, int gun_index)
|
|
|
DEBUG_INFO("idTagInfo-parentIdTag: %s\n", ShmOCPP16Data->StartTransaction[gun_index].ResponseIdTagInfo.ParentIdTag);
|
|
|
DEBUG_INFO("idTagInfo-status: %s\n", ShmOCPP16Data->StartTransaction[gun_index].ResponseIdTagInfo.Status);
|
|
|
DEBUG_INFO("transactionId: %d\n", ShmOCPP16Data->StartTransaction[gun_index].ResponseTransactionId);
|
|
|
+ system("fsync -d /dev/mtdblock13");
|
|
|
}
|
|
|
|
|
|
void handleStatusNotificationResponse(char *payload, int gun_index)
|
|
@@ -12656,6 +12658,7 @@ void StoreConfigurationTable(void)
|
|
|
|
|
|
fclose(outfile);
|
|
|
|
|
|
+ system("fsync -d /dev/mtdblock13");
|
|
|
}
|
|
|
|
|
|
void getKeyValue(char *keyReq)
|
|
@@ -14677,7 +14680,7 @@ int setKeyValue(char *key, char *value)
|
|
|
isSuccess = ConfigurationStatus_Rejected;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ system("fsync -d /dev/mtdblock13");
|
|
|
|
|
|
return isSuccess;
|
|
|
}
|
|
@@ -16465,6 +16468,7 @@ void storeTempStopTransaction(int gun_index)
|
|
|
fputs(queuedata, outfile);
|
|
|
fputs("\n", outfile);
|
|
|
fclose (outfile);
|
|
|
+ system("fsync -d /dev/mtdblock13");
|
|
|
}
|
|
|
|
|
|
void checkTempStopTransaction(int gun_index)
|
|
@@ -16528,6 +16532,7 @@ void checkTempStopTransaction(int gun_index)
|
|
|
// fptr1=freopen(NULL,"w",fptr1); // reset the fptr1 again
|
|
|
fclose(fptr1);
|
|
|
remove(TempStopTransaction); // remove the original file
|
|
|
+ system("fsync -d /dev/mtdblock13");
|
|
|
}
|
|
|
|
|
|
void FillStartTransaction(int ConnectorId, unsigned char IdTag[], int MeterStart,int ReservationId,unsigned char Timestamp[])
|