#include "fire_alarm.h"

#include "charger_control.h"
#include "debug.h"
#include "serial.h"

static uint8_t fire_alarm_latched = 0;

uint8_t FireAlarm_IsLatched(void) {
    return fire_alarm_latched;
}

void FireAlarm_Activate(void) {
    if (fire_alarm_latched) {
        return;
    }

    fire_alarm_latched = 1;
    log_printf(LOG_ERR, "FIRE ALARM activated\n");
}
