Browse Source

[Bugfix][Modularization][Module_OcppBackend20]

2021.11.15 / Folus Wen

Actions:
1. TransactionEvent function wronf name fix.

Files:
1. As follow commit history

Image version: D0.00.XX.XXXX.XX
Image checksum: XXXXXXXX

Hardware PWB P/N : XXXXXXX
Hardware Version : XXXXXXX
FolusWen 3 years ago
parent
commit
7eb65d881e

+ 2 - 2
EVSE/Modularization/ocpp20/JsonParser.c

@@ -77,7 +77,7 @@ static char *responseNames[] = {"Authorize",
 								"SecurityEventNotification",
 								"SignCertificate",
 								"StatusNotification",
-								"TransactionEven" };
+								"TransactionEvent" };
 
 static FunPtr funs[] = {handleAuthorizeResponse,
 						handleBootNotificationResponse,
@@ -103,7 +103,7 @@ static FunPtr funs[] = {handleAuthorizeResponse,
 						handleSecurityEventNotificationResponse,
 						handleSignCertificateResponse,
 						handleStatusNotificationResponse,
-						handleTransactionEvenResponse};
+						handleTransactionEventResponse};
 
 static FunCallPtr funcalls[] = {handleCancelReservationRequest,
 								handleCertificateSignedRequest,

+ 2 - 2
EVSE/Modularization/ocpp20/MessageHandler.c

@@ -18150,12 +18150,12 @@ void handleStatusNotificationResponse(char *payload, int gun_index)
 	cpinitateMsg.bits[gun_index].StatusNotificationConf = ON;
 }
 
-void handleTransactionEvenResponse(char *payload, int gun_index)
+void handleTransactionEventResponse(char *payload, int gun_index)
 {
 	mtrace();
 	json_object *TransactionEven;
 
-	DEBUG_INFO("handleTransactionEvenResponse...\n");
+	DEBUG_INFO("handleTransactionEventResponse...\n");
 	TransactionEven = json_tokener_parse(payload);
 	if(!is_error(TransactionEven))
 	{

+ 1 - 1
EVSE/Modularization/ocpp20/MessageHandler.h

@@ -974,7 +974,7 @@ void handleReservationStatusUpdateResponse(char *payload, int gun_index);
 void handleSecurityEventNotificationResponse(char *payload, int gun_index);
 void handleSignCertificateResponse(char *payload, int gun_index);
 void handleStatusNotificationResponse(char *payload, int gun_index);
-void handleTransactionEvenResponse(char *payload, int gun_index);
+void handleTransactionEventResponse(char *payload, int gun_index);
 
 //==========================================
 // Handle Error routine

BIN
EVSE/Projects/DS60-120/Images/u-boot-spl.bin