forked from achamaikin/CCSModuleSW30Web
Add fire alarm handling for DC30 CCS main controller.
Latch fire alarm until reboot, block recovery commands, and send periodic Everest ESTOP while active. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "rgb_controller.h"
|
||||
#include "fire_alarm.h"
|
||||
#include "main.h"
|
||||
#include "string.h"
|
||||
#include "charger_control.h"
|
||||
@@ -100,6 +101,10 @@ RGB_Cycle_t color_error = {
|
||||
};
|
||||
|
||||
void LED_Write(){
|
||||
if(FireAlarm_IsLatched() || CONN.chargingError == CONN_ERR_FIRE_ALARM){
|
||||
LED_SetColor(&color_error);
|
||||
return;
|
||||
}
|
||||
if(CONN.chargingError != CONN_NO_ERROR){
|
||||
LED_SetColor(&color_error);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user