修复在不配置MQTT信息的情况下,OTA将大概率无法进行,且后台可能经常卡死刷不出页面的问题

This commit is contained in:
Your Name
2025-04-16 23:16:01 +08:00
parent 5623b632c7
commit 026e058934
5 changed files with 49 additions and 17 deletions

View File

@@ -186,8 +186,10 @@ int application_start(void) {
}
}
KeyInit();
if (!(MQTT_SERVER[0] < 0x20 || MQTT_SERVER[0] > 0x7f || MQTT_SERVER_PORT < 1)){
err = UserMqttInit();
require_noerr(err, exit);
}
err = UserRtcInit();
require_noerr(err, exit);
PowerInit();