From 440d8f283f2fa37044a4a5d238b2975e94d5aa2f Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Tue, 3 Oct 2023 02:34:56 +0700 Subject: [PATCH] fix callback location bug --- src/espmega_iot_core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/espmega_iot_core.cpp b/src/espmega_iot_core.cpp index b0d0f2a..a088d03 100644 --- a/src/espmega_iot_core.cpp +++ b/src/espmega_iot_core.cpp @@ -364,13 +364,13 @@ void mqtt_connect() publish_pwm_states(); publish_input_states(); publish_ac_state(); + mqtt_connected_user_callback(); standalone = false; } else { standalone = true; Serial.print("MQTT not connected, continuing in standalone mode\n"); - mqtt_connected_user_callback(); lcd_send_stop_bit(); } lcd_send_stop_bit();