Pārlūkot izejas kodu

[Improve][AW-Regular][main.c]
2022-07-05 / EASON YANG
Action
1. Improve: OCPP 2.0 ControllerComponentVariable changed capital [TRUE] to lower case [true].

File
1. main.c
Action 1

FIRMWARE VERSION: V0.71.XX.XXXX.PX

8009 2 gadi atpakaļ
vecāks
revīzija
6f2a85a7a9
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 3 3
      EVSE/Projects/AW-Regular/Apps/main.c

+ 3 - 3
EVSE/Projects/AW-Regular/Apps/main.c

@@ -917,7 +917,7 @@ uint8_t ocpp_get_starttransaction_result(uint8_t gun_index)
 	}
 	else if(ShmSysConfigAndInfo->SysInfo.OcppRunningVer == OCPP_RUNNING_VERSION_20)
 	{
-		if(strstr((char*)ShmOCPP20Data->ControllerComponentVariable[TxCtrlr_StopTxOnInvalidId].variableAttribute[0].value, "TRUE"))
+		if(strstr((char*)ShmOCPP20Data->ControllerComponentVariable[TxCtrlr_StopTxOnInvalidId].variableAttribute[0].value, "true"))
 		{
 			if((strcmp((char*)ShmOCPP20Data->TransactionEvent[gun_index].Response_idTokenInfo.status, "Blocked")==0) ||
 			   (strcmp((char*)ShmOCPP20Data->TransactionEvent[gun_index].Response_idTokenInfo.status, "Expired")==0) ||
@@ -1049,7 +1049,7 @@ uint8_t ocpp_get_StopTransactionOnEVSideDisconnect()
 	}
 	else if(ShmSysConfigAndInfo->SysInfo.OcppRunningVer == OCPP_RUNNING_VERSION_20)
 	{
-		if(strcmp((char *)ShmOCPP20Data->ControllerComponentVariable[TxCtrlr_StopTxOnEVSideDisconnect].variableAttribute[0].value, "TRUE") == 0)
+		if(strcmp((char *)ShmOCPP20Data->ControllerComponentVariable[TxCtrlr_StopTxOnEVSideDisconnect].variableAttribute[0].value, "true") == 0)
 			result = ON;
 	}
 
@@ -1147,7 +1147,7 @@ uint8_t ocpp_isAuthorizeRemoteStart()
 	}
 	else if(ShmSysConfigAndInfo->SysInfo.OcppRunningVer == OCPP_RUNNING_VERSION_20)
 	{
-		if(strstr((char*)ShmOCPP20Data->ControllerComponentVariable[AuthCtrlr_AuthorizeRemoteStart].variableAttribute[0].value, "TRUE"))
+		if(strstr((char*)ShmOCPP20Data->ControllerComponentVariable[AuthCtrlr_AuthorizeRemoteStart].variableAttribute[0].value, "true"))
 		{
 			result = YES;
 		}