mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-06 03:50:13 +02:00
Call init only when MQTT defined
This commit is contained in:
parent
48a0cf3afa
commit
6fc8cb81c9
1 changed files with 2 additions and 2 deletions
|
@ -120,11 +120,11 @@ void setup() {
|
||||||
.trigger_panic = true // Enable panic reset on timeout
|
.trigger_panic = true // Enable panic reset on timeout
|
||||||
};
|
};
|
||||||
|
|
||||||
init_mqtt();
|
|
||||||
|
|
||||||
// Start tasks
|
// Start tasks
|
||||||
|
|
||||||
#ifdef MQTT
|
#ifdef MQTT
|
||||||
|
init_mqtt();
|
||||||
|
|
||||||
xTaskCreatePinnedToCore((TaskFunction_t)&mqtt_loop, "mqtt_loop", 4096, NULL, TASK_MQTT_PRIO, &mqtt_loop_task,
|
xTaskCreatePinnedToCore((TaskFunction_t)&mqtt_loop, "mqtt_loop", 4096, NULL, TASK_MQTT_PRIO, &mqtt_loop_task,
|
||||||
WIFI_CORE);
|
WIFI_CORE);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue