1、运行中空电关机改看显示百分比,到 5% 立刻停电机、关绿灯,红灯闪 5 下后再深睡,避免电压先掉、APP 还没到 5% 就关机

2、充电/放电电量缓冲加快,放电突变拦截先关掉,电量曲线满电点收到 4.12V
3、上电串口打印软硬件版本和编译时间
This commit is contained in:
2026-08-27 11:40:57 +08:00
parent fdb43011b7
commit 215e1be6bb
10 changed files with 205 additions and 68 deletions
+13
View File
@@ -11,6 +11,7 @@
* - V2.1.0, 2026.08.25, cyWu, 改为自己从 app_power/app_pair 取数,
* 调用方不用再手填 AppLedCtx_t
* - V2.3.0, 2026.08.27, cyWu, 新增 OTA 红绿交替灯效
* - V2.4.0, 2026.08.27, cyWu, 新增空电关机红灯闪 5 下
******************************************************************************/
#ifndef __APP_LED_H__
@@ -62,6 +63,18 @@ void app_led_request_ota(void);
*/
uint8_t app_led_is_ota(void);
/**
* @brief 空电关机灯效:关掉绿灯,只闪红灯 5 下
* @return 无
*/
void app_led_request_empty_off(void);
/**
* @brief 查询是否处于空电关机灯效
* @return 1=空电红闪中,0=否
*/
uint8_t app_led_is_empty_off(void);
/**
* @brief 清空全部灯事件并灭灯(关机前调用)
* @return 无