1. 解决ble 冷启动不能局域网控制的问题

之前的版本只能应对中途断网的情况。现在的应该可以应对无网启动的情况
This commit is contained in:
2025-07-09 21:48:46 +08:00
parent 06f5e5ddf1
commit 3dc430b62b
5 changed files with 100 additions and 15 deletions

View File

@ -72,7 +72,7 @@ typedef struct __attribute__((packed, aligned(1))) {
uint8_t colourMode; // 色温模式 (0:单色温, 1:双色温)
// 持久化维持
int32_t power_on_cnt; // 上电次数计数
uint8_t is_networked; // 是否已配网
uint8_t is_bound; // 是否已配网
uint8_t is_net_configured; // 设备是否曾经配网成功过
uint32_t reserve[10]; // 保留字段
@ -208,7 +208,7 @@ typedef enum {
.brightness_local = BRIGHTNESS_REMOTE2LOCAL(INIT_STA__BRIGHTNESS), \
.fade_time = NET_CFG_DEFAULT_FADE_TIME, \
.colourMode = COLOUR_MODE_DUAL, \
.is_networked = false, \
.is_bound = false, \
.is_net_configured = false, \
.duty_cw = 0, \
.duty_ww = 0, \