diff options
| author | elijah-thomas774 <elijahthomas774@gmail.com> | 2025-06-15 14:40:59 -0400 |
|---|---|---|
| committer | elijah-thomas774 <elijahthomas774@gmail.com> | 2025-06-15 14:40:59 -0400 |
| commit | e4b1c30f472e7a4fdbce657aba7b9b5fb0dd2d59 (patch) | |
| tree | cd267c29d69e4996ff1d120ebb3613744ca69f1b /src/d/lyt/d_lyt_battery.cpp | |
| parent | 2707f74d70f2783f8e70889f48e95b3ec8c00635 (diff) | |
Pad stuff
Diffstat (limited to 'src/d/lyt/d_lyt_battery.cpp')
| -rw-r--r-- | src/d/lyt/d_lyt_battery.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/d/lyt/d_lyt_battery.cpp b/src/d/lyt/d_lyt_battery.cpp index 5a522545..5884928d 100644 --- a/src/d/lyt/d_lyt_battery.cpp +++ b/src/d/lyt/d_lyt_battery.cpp @@ -1,6 +1,7 @@ #include "d/lyt/d_lyt_battery.h" #include "d/d_d2d.h" +#include "d/d_pad.h" #include "egg/core/eggController.h" #include "m/m_pad.h" #include "toBeSorted/arc_managers/layout_arc_manager.h" @@ -85,11 +86,8 @@ bool dLytBattery_c::dismissManually() { return true; } -extern "C" bool isLowBattery1(); -extern "C" bool isLowBattery2(); - bool dLytBattery_c::hasEnoughBatteryCharge() { - if (!mPad::g_currentCore->mFlag.offBit(0) && (isLowBattery2() || isLowBattery1())) { + if (mPad::getCore()->isConnected() && (dPad::ex_c::isLowBattery() || dPad::ex_c::isOutOfBattery())) { return false; } return true; |
