Add ms_env_on to MetricStreaming server v3

This commit is contained in:
Carsten Schmiemann 2022-05-24 00:08:25 +02:00
parent c83a176527
commit dec6c220d5
1 changed files with 1 additions and 1 deletions

View File

@ -751,7 +751,7 @@ void OvmsServerV3::MetricModified(OvmsMetric* metric)
int now = StandardMetrics.ms_m_monotonic->AsInt();
//ESP_LOGD(TAG, "now: %d, m_lasttx_stream: %d, m_streaming: %d", now, m_lasttx_stream, m_streaming);
if (m_streaming && now > m_lasttx_stream+m_streaming) //Test counter without caron message
if (StandardMetrics.ms_v_env_on->AsBool() && m_streaming && now > m_lasttx_stream+m_streaming)
{
OvmsMutexLock mg(&m_mgconn_mutex);
if (!m_mgconn)