From 57c9359622b3a1e0729dc78ec54d7d70d02676ce Mon Sep 17 00:00:00 2001 From: Maxim Prokhorov Date: Sat, 23 Nov 2019 00:49:10 +0300 Subject: [PATCH] utils: interval value is in seconds --- code/espurna/utils.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/espurna/utils.ino b/code/espurna/utils.ino index fb8017a1..b5eedd54 100644 --- a/code/espurna/utils.ino +++ b/code/espurna/utils.ino @@ -247,7 +247,7 @@ void heartbeat() { #if MQTT_SUPPORT if (!serial && (_heartbeat_mode == HEARTBEAT_REPEAT || systemGetHeartbeat())) { if (hb_cfg & Heartbeat::Interval) - mqttSend(MQTT_TOPIC_INTERVAL, String(getHeartbeatInterval() / 1000).c_str()); + mqttSend(MQTT_TOPIC_INTERVAL, String(getHeartbeatInterval()).c_str()); if (hb_cfg & Heartbeat::App) mqttSend(MQTT_TOPIC_APP, APP_NAME);