Browse Source

2022-01-24/Jerry Wang
Action:
1. Correct GetConfiguration ResponseConfigurationKey content from GetConfiguration_TransactionMessageAttempts to GetConfiguration_StatusNotificationPeriodically.

File:
1. EVSE/Modularization/ocppfiles/MessageHandler.c
--> Action 1
2. EVSE/Modularization/ocppph/MessageHandler.c
--> Action 1

Jerry Wang 3 years ago
parent
commit
30b4f7113d

+ 1 - 1
EVSE/Modularization/ocppfiles/MessageHandler.c

@@ -17952,7 +17952,7 @@ void getKeyValue(char *keyReq)
 	      if(isEmpty ||  strcmp(keyReq, "StatusNotificationPeriodically") == 0 )
 		  {
 			  strcpy((char *)ShmOCPP16Data->GetConfiguration.Key[GetConfiguration_StatusNotificationPeriodically].Item, "StatusNotificationPeriodically");
-			  strcpy((char *)ShmOCPP16Data->GetConfiguration.ResponseConfigurationKey[GetConfiguration_TransactionMessageAttempts].Key, "StatusNotificationPeriodically");
+			  strcpy((char *)ShmOCPP16Data->GetConfiguration.ResponseConfigurationKey[GetConfiguration_StatusNotificationPeriodically].Key, "StatusNotificationPeriodically");
 
 			  if(ShmOCPP16Data->ConfigurationTable.CoreProfile[StatusNotificationPeriodically].ItemAccessibility == 1)
 			  {

+ 1 - 1
EVSE/Modularization/ocppph/MessageHandler.c

@@ -17333,7 +17333,7 @@ void getKeyValue(char *keyReq)
 	      if(isEmpty ||  strcmp(keyReq, "StatusNotificationPeriodically") == 0 )
 		  {
 			  strcpy((char *)ShmOCPP16DataPH->GetConfiguration.Key[GetConfiguration_StatusNotificationPeriodically].Item, "StatusNotificationPeriodically");
-			  strcpy((char *)ShmOCPP16DataPH->GetConfiguration.ResponseConfigurationKey[GetConfiguration_TransactionMessageAttempts].Key, "StatusNotificationPeriodically");
+			  strcpy((char *)ShmOCPP16DataPH->GetConfiguration.ResponseConfigurationKey[GetConfiguration_StatusNotificationPeriodically].Key, "StatusNotificationPeriodically");
 
 			  if(ShmOCPP16DataPH->ConfigurationTable.CoreProfile[StatusNotificationPeriodically].ItemAccessibility == 1)
 			  {