|
@@ -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((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");
|
|
|
|
|
|
if(gunType[gun_index] == 'J')
|
|
|
{
|