Skip to content

Commit

Permalink
Update battery check spoof
Browse files Browse the repository at this point in the history
Before it was checking only for invalid battery status (0xFF-255), now it forces always 100%.
  • Loading branch information
cpz committed Oct 26, 2023
1 parent 2bc691d commit 0361d13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Entry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ CheckPowerStatusFn power_status_fn = nullptr;

bool CheckPowerStatus(bool& a1, InsydeFlash* a2, bool& a3)
{
if (a2->GetBatteryValue() == 0xFF) a2->SetBatteryValue(100);
if (a2->GetBatteryValue() != 100) a2->SetBatteryValue(100);
return true;
}

Expand Down

0 comments on commit 0361d13

Please sign in to comment.