Extend pyrofuse event check

This commit is contained in:
Daniel Öster 2025-03-27 18:14:47 +02:00
parent 63222b4c77
commit ab15b59f3c

View file

@ -824,8 +824,8 @@ void update_values_battery() { //This function maps all the values fetched via
} else {
clear_event(EVENT_INTERNAL_OPEN_FAULT);
}
//Voltage missing, pyrofuse most likely blown
if (datalayer.battery.status.voltage_dV == 10) {
//Voltage between 0.5-5.0V, pyrofuse most likely blown
if (datalayer.battery.status.voltage_dV >= 5 && datalayer.battery.status.voltage_dV <= 50) {
set_event(EVENT_BATTERY_FUSE, 0);
} else {
clear_event(EVENT_BATTERY_FUSE);