rfb: a little bit more RELAY_SUPPORT checks

This commit is contained in:
Maxim Prokhorov
2020-08-31 05:51:30 +03:00
parent a409dedefe
commit 901dc2ed71
2 changed files with 68 additions and 46 deletions

View File

@@ -378,8 +378,10 @@ void heartbeat() {
if (hb_cfg & Heartbeat::Freeheap)
mqttSend(MQTT_TOPIC_FREEHEAP, String(heap_stats.available).c_str());
#if RELAY_SUPPORT
if (hb_cfg & Heartbeat::Relay)
relayMQTT();
#endif
#if (LIGHT_PROVIDER != LIGHT_PROVIDER_NONE)
if (hb_cfg & Heartbeat::Light)