浏览代码

加入充电过流日志

Signed-off-by: kevin <huhui@sharkgulf.com>
kevin 2 年之前
父节点
当前提交
2a605fea03
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      Application/app/event_record.h
  2. 1 0
      Application/app/sox/health.c

+ 1 - 0
Application/app/event_record.h

@@ -30,6 +30,7 @@ typedef enum {
 	Cell_balance,
 	Discharger_Operate_Off,
 	Discharger_Operate_On,
+	Charger_Current_Ov,
 }event_id_t;
 
 typedef struct {

+ 1 - 0
Application/app/sox/health.c

@@ -180,6 +180,7 @@ void check_current_state(void){
 				_health.charger_over_current = 1;
 				_charger_over_current.count = 0;
 				health_warning("charger over current\n");
+				push_event(Charger_Current_Ov, (s32)current);
 				shark_timer_post(&_charger_detect_timer._timer, _charger_detect_timer.interval);
 			}
 		}