Add fire alarm support and update firmware version to 1.0.19
- Introduced CONN_ERR_FIRE_ALARM to handle fire alarm conditions in charger control. - Added CMD_FIRE_ALARM command for external trigger handling in serial control. - Updated firmware version from 1.0.17 to 1.0.19. - Integrated fire alarm functionality into the charging loop and command handler.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
#include "charger_config.h"
|
||||
#include "debug.h"
|
||||
#include "fire_alarm.h"
|
||||
#include "psu_control.h"
|
||||
|
||||
ChargingConnector_t CONN;
|
||||
@@ -22,7 +23,9 @@ void CONN_Loop(){
|
||||
CONN.connControl = CMD_NONE;
|
||||
}
|
||||
|
||||
if(PSU0.cont_fault){
|
||||
if (FireAlarm_IsLatched()) {
|
||||
CONN.chargingError = CONN_ERR_FIRE_ALARM;
|
||||
} else if(PSU0.cont_fault){
|
||||
CONN.chargingError = CONN_ERR_CONTACTOR;
|
||||
} else if(PSU0.psu_fault){
|
||||
CONN.chargingError = CONN_ERR_PSU_FAULT;
|
||||
|
||||
Reference in New Issue
Block a user