Correct build issue when discovery is disable (#877)

#875
This commit is contained in:
Florian authored and GitHub committed 2021-02-26 15:47:38 -06:00
1 parent 452233258f
commit 28ff1a553a
1 file changed
+2
+2
View File
@@ -730,8 +730,10 @@ void coreTask(void* pvParameters) {
// Launching a connect every BLEscanBeforeConnect
if (!(scanCount % BLEscanBeforeConnect) || scanCount == 1)
BLEconnect();
# ifdef ZmqttDiscovery
if (disc)
launchDiscovery();
# endif
dumpDevices();
}
if (lowpowermode) {