|
@@ -82,8 +82,8 @@ uint8_t bd0_2_status = 0;
|
|
uint8_t bd1_1_status = 0;
|
|
uint8_t bd1_1_status = 0;
|
|
uint8_t bd1_2_status = 0;
|
|
uint8_t bd1_2_status = 0;
|
|
|
|
|
|
-char *fwVersion = "V2.18.00.0000.00"; // Phihong version
|
|
|
|
-char* DebugVersion = "V2.18.00"; // Software debug version
|
|
|
|
|
|
+char *fwVersion = "V2.19.00.0000.00"; // Phihong version
|
|
|
|
+char* DebugVersion = "V2.19.00"; // Software debug version
|
|
//sqlite3 *localDb;
|
|
//sqlite3 *localDb;
|
|
bool isDb_ready;
|
|
bool isDb_ready;
|
|
|
|
|
|
@@ -1538,10 +1538,9 @@ void _DetectPlugInTimeout(uint8_t gunIndex)
|
|
int i;
|
|
int i;
|
|
log_info("*********** Gun%d _DetectPlugInTimeout *********** ",gunIndex);
|
|
log_info("*********** Gun%d _DetectPlugInTimeout *********** ",gunIndex);
|
|
pDcChargingInfo = (struct ChargingInfoData*)GetDcChargingInfoData(gunIndex);
|
|
pDcChargingInfo = (struct ChargingInfoData*)GetDcChargingInfoData(gunIndex);
|
|
-
|
|
|
|
- //StopSystemTimeoutDet();
|
|
|
|
|
|
+ StopSystemTimeoutDet();
|
|
StopGunInfoTimeoutDet(gunIndex);
|
|
StopGunInfoTimeoutDet(gunIndex);
|
|
- ShmDcCommonData->TradeCancel = TRUE;
|
|
|
|
|
|
+
|
|
if (pDcChargingInfo->RemoteStartFlag || pDcChargingInfo->isRemoteStart) {
|
|
if (pDcChargingInfo->RemoteStartFlag || pDcChargingInfo->isRemoteStart) {
|
|
StopSystemTimeoutDet();
|
|
StopSystemTimeoutDet();
|
|
ClearDetectPluginFlag(gunIndex);
|
|
ClearDetectPluginFlag(gunIndex);
|
|
@@ -1549,10 +1548,11 @@ void _DetectPlugInTimeout(uint8_t gunIndex)
|
|
setChargerMode(gunIndex, S_IDLE);
|
|
setChargerMode(gunIndex, S_IDLE);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ pSysInfo->CurGunSelected = gunIndex;
|
|
ShmDcCommonData->PreAuth_Config = _CREDITCARD_CANCEL;
|
|
ShmDcCommonData->PreAuth_Config = _CREDITCARD_CANCEL;
|
|
ShmDcCommonData->PreAuth_Result = 0;
|
|
ShmDcCommonData->PreAuth_Result = 0;
|
|
pSysInfo->SystemPage = _PAGE_SENSING;
|
|
pSysInfo->SystemPage = _PAGE_SENSING;
|
|
|
|
+ ShmDcCommonData->TradeCancel = TRUE;
|
|
StartSystemTimeoutDet(Timeout_TradeCancel);
|
|
StartSystemTimeoutDet(Timeout_TradeCancel);
|
|
for(i=0;i<=30;i++) {
|
|
for(i=0;i<=30;i++) {
|
|
if(ShmDcCommonData->PreAuth_Config == _CREDITCARD_IDLE)
|
|
if(ShmDcCommonData->PreAuth_Config == _CREDITCARD_IDLE)
|
|
@@ -2536,7 +2536,7 @@ void CreateTimeoutFork(void)
|
|
if (pSysInfo->SystemTimeoutFlag != 0)
|
|
if (pSysInfo->SystemTimeoutFlag != 0)
|
|
log_info("Timeout ***********SystemTimeoutFlag = %d(%d) ********",pSysInfo->SystemTimeoutFlag,
|
|
log_info("Timeout ***********SystemTimeoutFlag = %d(%d) ********",pSysInfo->SystemTimeoutFlag,
|
|
GetClockTimeoutValue(pSysInfo->SystemTimeoutTimer) / uSEC_VAL);
|
|
GetClockTimeoutValue(pSysInfo->SystemTimeoutTimer) / uSEC_VAL);
|
|
- */
|
|
|
|
|
|
+ */
|
|
// 系統
|
|
// 系統
|
|
switch (pSysInfo->SystemTimeoutFlag) {
|
|
switch (pSysInfo->SystemTimeoutFlag) {
|
|
case Timeout_SelftestChk:
|
|
case Timeout_SelftestChk:
|