|
@@ -2793,14 +2793,6 @@ void CheckSystemValue(void)
|
|
|
ShmOCPP16Data->CsMsg.bits[gun_index].DataTransferReq = 0;
|
|
|
}
|
|
|
|
|
|
- //===============================
|
|
|
- // CSU Trigger Reset Conf
|
|
|
- //===============================
|
|
|
- if(isWebsocketSendable && (server_sign == TRUE) && (ShmOCPP16Data->MsMsg.bits.ResetConf == 1))
|
|
|
- {
|
|
|
- sendResetConfirmation((char *)ShmOCPP16Data->Reset.guid, (char *)ShmOCPP16Data->Reset.ResponseStatus);
|
|
|
- }
|
|
|
-
|
|
|
//===============================
|
|
|
// CSU Trigger Authorize Request
|
|
|
//===============================
|
|
@@ -10253,19 +10245,18 @@ int handleResetRequest(char *uuid, char *payload)
|
|
|
sprintf((char *)ShmOCPP16Data->Reset.Type, "%s" ,typestr);
|
|
|
if((strcmp(typestr, ResetTypeStr[Hard])==0) || (strcmp(typestr, ResetTypeStr[Soft])==0))
|
|
|
{
|
|
|
- ShmOCPP16Data->MsMsg.bits.ResetReq = 1;
|
|
|
+ ShmOCPP16Data->MsMsg.bits.ResetReq = 1;
|
|
|
strcpy((char *)ShmOCPP16Data->Reset.guid, uuid);
|
|
|
- result = TRUE;
|
|
|
- return result;
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- strcpy(comfirmstr, ResetStatusStr[ResetStatus_Rejected]);
|
|
|
- sprintf((char *)ShmOCPP16Data->Reset.ResponseStatus, "%s" ,comfirmstr);
|
|
|
- goto errorend;
|
|
|
- }
|
|
|
+ strcpy(comfirmstr, ResetStatusStr[ResetStatus_Accepted]);
|
|
|
+ sprintf((char *)ShmOCPP16Data->Reset.ResponseStatus, "%s" ,comfirmstr);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ strcpy(comfirmstr, ResetStatusStr[ResetStatus_Rejected]);
|
|
|
+ sprintf((char *)ShmOCPP16Data->Reset.ResponseStatus, "%s" ,comfirmstr);
|
|
|
+ result = PASS;
|
|
|
+ }
|
|
|
|
|
|
-errorend:
|
|
|
sendResetConfirmation(uuid, comfirmstr);
|
|
|
return result;
|
|
|
}
|