Fix server v3 MetricModified

This commit is contained in:
Carsten Schmiemann 2022-05-23 22:12:03 +02:00
parent c3cd9ba23e
commit e5c13e0bb6
1 changed files with 2 additions and 1 deletions

View File

@ -749,7 +749,8 @@ void OvmsServerV3::MetricModified(OvmsMetric* metric)
{
if (!StandardMetrics.ms_s_v3_connected->AsBool()) return;
if (now > m_lasttx_stream+m_streaming) //Test counter without caron message
int now = StandardMetrics.ms_m_monotonic->AsInt();
if (m_streaming && now > m_lasttx_stream+m_streaming) //Test counter without caron message
{
OvmsMutexLock mg(&m_mgconn_mutex);
if (!m_mgconn)