1. 修复频繁上下线问题

2. 修复会bind会有两个设备的问题
3. 其他若干体验问题
4. 增加产测功能
This commit is contained in:
2025-06-10 08:58:50 +08:00
parent 5ec8b9380c
commit fa4907e34e
9 changed files with 444 additions and 60 deletions

View File

@ -134,12 +134,6 @@ typedef struct __attribute__((packed, aligned(1))) {
#define DEVICE_DATA_MAGIC 0x4C505426 // "LPT&"的ASCII码
#define DEVICE_DATA_VERSION 1 // 数据版本号
int spotlight_main(void);
int set_light(int32_t brightness, int32_t cct); // 新的统一控制函数
int set_switch(bool open);
int set_smooth_time(uint32_t smooth_time); // 设置渐变时长
extern int fast_report(const char* svc_id);
// 保存任务相关定义
#define SAVE_TASK_PRIO 25
@ -166,5 +160,14 @@ typedef enum {
.duty_ww = 0, \
};
int spotlight_main(void);
int set_light(int32_t brightness, int32_t cct); // 新的统一控制函数
int set_switch(bool open);
int set_smooth_time(uint32_t smooth_time); // 设置渐变时长
void update_pwm_output(bool on_state, uint16_t duty_cw, uint16_t duty_ww);
void stop_net_config(void);
extern int fast_report(const char* svc_id);
#endif