mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 17:59:27 +02:00
Extend pyrofuse event check
This commit is contained in:
parent
63222b4c77
commit
ab15b59f3c
1 changed files with 2 additions and 2 deletions
|
@ -824,8 +824,8 @@ void update_values_battery() { //This function maps all the values fetched via
|
||||||
} else {
|
} else {
|
||||||
clear_event(EVENT_INTERNAL_OPEN_FAULT);
|
clear_event(EVENT_INTERNAL_OPEN_FAULT);
|
||||||
}
|
}
|
||||||
//Voltage missing, pyrofuse most likely blown
|
//Voltage between 0.5-5.0V, pyrofuse most likely blown
|
||||||
if (datalayer.battery.status.voltage_dV == 10) {
|
if (datalayer.battery.status.voltage_dV >= 5 && datalayer.battery.status.voltage_dV <= 50) {
|
||||||
set_event(EVENT_BATTERY_FUSE, 0);
|
set_event(EVENT_BATTERY_FUSE, 0);
|
||||||
} else {
|
} else {
|
||||||
clear_event(EVENT_BATTERY_FUSE);
|
clear_event(EVENT_BATTERY_FUSE);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue