Add ms_env_on to MetricStreaming server v3
This commit is contained in:
parent
c83a176527
commit
dec6c220d5
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue