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 {
|
||||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue