浏览代码

[Improve][Modularization][Module_OcppBackend / Module_OcppBackendPH / Module_OcppBackend20]

2022.01.30 / Folus Wen

Actions:
1. Fix wrong data transfer id name ID_DisplayLcdPage.

Files:
1. As follow commit history

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

Hardware PWB P/N : XXXXXXX
Hardware Version : XXXXXXX
Folus 3 年之前
父节点
当前提交
f1d29c4abc

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

@@ -13517,7 +13517,7 @@ int handleDataTransferRequest(char *uuid, char *payload)
 			}
 			json_object_put(data);
 		}
-		else if(strstr((char*)ShmOCPP20Data->DataTransfer[0].messageId, "ID_DsiplayLcdPage") != NULL)
+		else if(strstr((char*)ShmOCPP20Data->DataTransfer[0].messageId, "ID_DisplayLcdPage") != NULL)
 		{
 			json_object *data;
 			data = json_tokener_parse((char*)ShmOCPP20Data->DataTransfer[0].data);
@@ -13536,7 +13536,7 @@ int handleDataTransferRequest(char *uuid, char *payload)
 					ShmSysConfigAndInfo->SysConfig.LcdOveride.duration = json_object_get_int(json_object_object_get(data, "Duration"));
 				}
 
-				ShmSysConfigAndInfo->SysConfig.LcdOveride.isOverideReq = 1;
+				ShmSysConfigAndInfo->SysConfig.LcdOveride.isOverideReq = ON;
 			}
 			else
 			{

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

@@ -10741,7 +10741,7 @@ int handleDataTransferRequest(char *uuid, char *payload)
 			sprintf(message,"[%d,\"%s\",%s]",MESSAGE_TYPE_CALLRESULT, uuid, json_object_to_json_string_ext(response, JSON_C_TO_STRING_PLAIN));
 			json_object_put(response);
 		}
-		else if(strstr(tempmessageId, "ID_DsiplayLcdPage") != NULL)
+		else if(strstr(tempmessageId, "ID_DisplayLcdPage") != NULL)
 		{
 			json_object *data;
 			data = json_tokener_parse(tempdata);

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

@@ -10279,7 +10279,7 @@ int handleDataTransferRequest(char *uuid, char *payload)
 			sprintf(message,"[%d,\"%s\",%s]",MESSAGE_TYPE_CALLRESULT, uuid, json_object_to_json_string_ext(response, JSON_C_TO_STRING_PLAIN));
 			json_object_put(response);
 		}
-		else if(strstr(tempmessageId, "ID_DsiplayLcdPage") != NULL)
+		else if(strstr(tempmessageId, "ID_DisplayLcdPage") != NULL)
 		{
 			json_object *data;
 			data = json_tokener_parse(tempdata);