Browse Source

2020-08-07 / Alston Lin
Actions
1. Modify the function of qrCode
Files
1. As follow commit history

Alston 4 years ago
parent
commit
1e05bc4e58
1 changed files with 2 additions and 8 deletions
  1. 2 8
      EVSE/Projects/DS60-120/Apps/Module_LcmControl.c

+ 2 - 8
EVSE/Projects/DS60-120/Apps/Module_LcmControl.c

@@ -857,10 +857,7 @@ void ProcessPageInfo()
 				if (ShmSysConfigAndInfo->SysConfig.isQRCode)
 				{
 					needReloadQr = false;
-					char QrCodeContent[128];
-					strcpy(QrCodeContent, (char *)ShmSysConfigAndInfo->SysConfig.ModelName);
-					strcat(QrCodeContent, (char *)ShmSysConfigAndInfo->SysConfig.SerialNumber);
-					ChangeQrCode_Idle(QrCodeContent);
+					ChangeQrCode_Idle((char *)ShmSysConfigAndInfo->SysConfig.SystemId);
 				}
 			}
 		}
@@ -1129,10 +1126,7 @@ void ProcessPageInfo()
 						if (ShmSysConfigAndInfo->SysConfig.isQRCode)
 						{
 							needReloadQr = false;
-							char QrCodeContent[128];
-							strcpy(QrCodeContent, (char *)ShmSysConfigAndInfo->SysConfig.ModelName);
-							strcat(QrCodeContent, (char *)ShmSysConfigAndInfo->SysConfig.SerialNumber);
-							ChangeQrCode_Charge(QrCodeContent);
+							ChangeQrCode_Charge((char *)ShmSysConfigAndInfo->SysConfig.SystemId);
 						}
 					}
 				}