From dec6c220d58587d34d6d6577685cfedc2bf9ee77 Mon Sep 17 00:00:00 2001 From: Carsten Schmiemann Date: Tue, 24 May 2022 00:08:25 +0200 Subject: [PATCH] Add ms_env_on to MetricStreaming server v3 --- OVMS.V3/components/ovms_server_v3/src/ovms_server_v3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OVMS.V3/components/ovms_server_v3/src/ovms_server_v3.cpp b/OVMS.V3/components/ovms_server_v3/src/ovms_server_v3.cpp index ab16f37..cadf41a 100644 --- a/OVMS.V3/components/ovms_server_v3/src/ovms_server_v3.cpp +++ b/OVMS.V3/components/ovms_server_v3/src/ovms_server_v3.cpp @@ -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)