Procházet zdrojové kódy

2020-05-21 /Kathy Yeh
1. modify offline Temp StopTransaction logic

Kathy_Yeh před 4 roky
rodič
revize
936aaa5e64
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      EVSE/Modularization/ocppfiles/MessageHandler.c

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

@@ -1134,7 +1134,7 @@ int isOFFline(void)
 {
 	if(ShmSysConfigAndInfo->SysInfo.InternetConn == 0)
 	{
-		if(TempMeterValueInterval >=  (atoi((const char *)ShmOCPP16Data->ConfigurationTable.CoreProfile[MeterValueSampleInterval].ItemData)- 1 )  )
+		if(TempMeterValueInterval >=  10  )
 		{
 			TempMeterValueInterval = 0;
 			return TRUE;
@@ -1422,6 +1422,7 @@ void CheckSystemValue(void)
 	//==============================================
 	if(/*(server_sign == TRUE) &&*/(isOFFline() == TRUE) || ((time((time_t*)NULL) - clientTime.MeterValues[gun_index])> (atoi((const char *)ShmOCPP16Data->ConfigurationTable.CoreProfile[MeterValueSampleInterval].ItemData)- 1 ) ) )
 	{
+		DEBUG_INFO("Sent Meter Value\n");
 		//check Transaction active
 		if(gunType[gun_index] == 'J')
 		{