|
@@ -155,7 +155,7 @@ bool isModelNameMatch = true;
|
|
|
|
|
|
int rfidFd = -1;
|
|
|
char *rfidPortName = "/dev/ttyS2";
|
|
|
-char *fwVersion = "V1.03.00.0000.00"; // "V0.16.00.0000.00";
|
|
|
+char *fwVersion = "V1.04.00.0000.00"; // "V0.16.00.0000.00";
|
|
|
|
|
|
sqlite3 *localDb;
|
|
|
bool isDb_ready;
|
|
@@ -288,11 +288,11 @@ static void setSelGunWaitToAuthor(uint8_t curSel)
|
|
|
{
|
|
|
if (curSel == LEFT_GUN_NUM && gAudiCustInfo->SelGunInfo.LeftGun == SEL_GUN_CONFIRM) {
|
|
|
gAudiCustInfo->SelGunInfo.LeftGun = SEL_GUN_ATHOR;
|
|
|
- printf("setSelGunWaitToAuthor left\r\n");
|
|
|
+ //printf("setSelGunWaitToAuthor left\r\n");
|
|
|
StopGunInfoTimeoutDet(curSel);
|
|
|
} else if (curSel == RIGHT_GUN_NUM && gAudiCustInfo->SelGunInfo.RightGun == SEL_GUN_CONFIRM) {
|
|
|
gAudiCustInfo->SelGunInfo.RightGun = SEL_GUN_ATHOR;
|
|
|
- printf("setSelGunWaitToAuthor right\r\n");
|
|
|
+ //printf("setSelGunWaitToAuthor right\r\n");
|
|
|
StopGunInfoTimeoutDet(curSel);
|
|
|
}
|
|
|
}
|
|
@@ -312,11 +312,11 @@ static void confirmSelGun(uint8_t selGun)
|
|
|
if (selGun == LEFT_GUN_NUM) {
|
|
|
gAudiCustInfo->SelGunInfo.LeftGun = SEL_GUN_CONFIRM;
|
|
|
StopGunInfoTimeoutDet(selGun);
|
|
|
- printf("confirmSelGun left\r\n");
|
|
|
+ //printf("confirmSelGun left\r\n");
|
|
|
} else if (selGun == RIGHT_GUN_NUM) {
|
|
|
gAudiCustInfo->SelGunInfo.RightGun = SEL_GUN_CONFIRM;
|
|
|
StopGunInfoTimeoutDet(selGun);
|
|
|
- printf("confirmSelGun right\r\n");
|
|
|
+ //printf("confirmSelGun right\r\n");
|
|
|
}
|
|
|
|
|
|
changeLcmPage(_LCM_IDLE);
|
|
@@ -1935,7 +1935,7 @@ void _AuthorizedTimeout()
|
|
|
if (IsAuthorizingMode()) {
|
|
|
PRINTF_FUNC("*********** _AuthorizedTimeout *********** \n");
|
|
|
isCardScan = false;
|
|
|
- gAudiCustInfo->PricesInfo[ShmSysConfigAndInfo->SysInfo.CurGunSelected].Balance = 0.0; //Jerry add
|
|
|
+ //gAudiCustInfo->PricesInfo[ShmSysConfigAndInfo->SysInfo.CurGunSelected].Balance = 0.0; //Jerry add
|
|
|
ShmSysConfigAndInfo->SysInfo.SystemPage = _LCM_AUTHORIZ_FAIL;
|
|
|
//ChangeLcmByIndex(_LCM_AUTHORIZ_FAIL);
|
|
|
strcpy((char *)ShmSysConfigAndInfo->SysConfig.UserId, "");
|
|
@@ -2399,13 +2399,13 @@ void ChkPrimaryStatus()
|
|
|
switch (chargingInfo[ShmSysConfigAndInfo->SysInfo.CurGunSelected]->SystemStatus) {
|
|
|
case S_IDLE: {
|
|
|
if (isDetectPlugin()) {
|
|
|
- printf("isDetectPlugin\r\n");
|
|
|
+ //printf("isDetectPlugin\r\n");
|
|
|
_DetectPlugInTimeout();
|
|
|
destroySelGun(ShmSysConfigAndInfo->SysInfo.CurGunSelected);
|
|
|
StopSystemTimeoutDet();
|
|
|
} else {
|
|
|
if (getConfirmSelectedGun(ShmSysConfigAndInfo->SysInfo.CurGunSelected) == PASS) {
|
|
|
- printf("destroy gun = %d\r\n", ShmSysConfigAndInfo->SysInfo.CurGunSelected);
|
|
|
+ //printf("destroy gun = %d\r\n", ShmSysConfigAndInfo->SysInfo.CurGunSelected);
|
|
|
destroySelGun(ShmSysConfigAndInfo->SysInfo.CurGunSelected);
|
|
|
} else {
|
|
|
confirmSelGun(ShmSysConfigAndInfo->SysInfo.CurGunSelected);
|
|
@@ -2465,12 +2465,12 @@ void ChkPrimaryStatus()
|
|
|
//PRINTF_FUNC("right btn down............................... %d \n", ShmSysConfigAndInfo->SysInfo.CurGunSelected);
|
|
|
if (ShmSysConfigAndInfo->SysInfo.CurGunSelected + 1 < ShmSysConfigAndInfo->SysConfig.TotalConnectorCount &&
|
|
|
ShmSysConfigAndInfo->SysInfo.IsAlternatvieConf == NO) {
|
|
|
- printf("CurGunSelected++\r\n");
|
|
|
+ //printf("CurGunSelected++\r\n");
|
|
|
ShmSysConfigAndInfo->SysInfo.CurGunSelected++;
|
|
|
ChangeGunSelectByIndex(ShmSysConfigAndInfo->SysInfo.CurGunSelected);
|
|
|
} else if (ShmSysConfigAndInfo->SysConfig.AcConnectorCount > 0 &&
|
|
|
ShmSysConfigAndInfo->SysInfo.CurGunSelectedByAc == NO_DEFINE) {
|
|
|
- printf("DEFAULT_AC_INDEX\r\n");
|
|
|
+ //printf("DEFAULT_AC_INDEX\r\n");
|
|
|
ShmSysConfigAndInfo->SysInfo.CurGunSelectedByAc = DEFAULT_AC_INDEX;
|
|
|
} else if (ShmSysConfigAndInfo->SysInfo.IsAlternatvieConf == YES) {
|
|
|
for (byte _index = 0; _index < ShmSysConfigAndInfo->SysConfig.TotalConnectorCount; _index++) {
|
|
@@ -2482,11 +2482,11 @@ void ChkPrimaryStatus()
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
- printf("1 CurGunSelected = 0\r\n");
|
|
|
+ //printf("1 CurGunSelected = 0\r\n");
|
|
|
ShmSysConfigAndInfo->SysInfo.CurGunSelected = 0;
|
|
|
ChangeGunSelectByIndex(ShmSysConfigAndInfo->SysInfo.CurGunSelected);
|
|
|
} else {
|
|
|
- printf("2 CurGunSelected = 0\r\n");
|
|
|
+ //printf("2 CurGunSelected = 0\r\n");
|
|
|
ShmSysConfigAndInfo->SysInfo.CurGunSelected = 0;
|
|
|
ChangeGunSelectByIndex(ShmSysConfigAndInfo->SysInfo.CurGunSelected);
|
|
|
}
|
|
@@ -3311,7 +3311,7 @@ int CheckUpdateProcess(void)
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
- printf("Upgrade CCS open CAN FD fail.\n");
|
|
|
+ DEBUG_ERROR_MSG("Upgrade CCS open CAN FD fail.\n");
|
|
|
//isPass = false;
|
|
|
return FAIL;
|
|
|
}
|