Fix server v3 MetricModified
This commit is contained in:
parent
c3cd9ba23e
commit
e5c13e0bb6
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue