mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-19 13:50:28 +01:00
Merge "[ion] Abort suspend when the USB is plugged"
This commit is contained in:
@@ -57,7 +57,7 @@ void Ion::Power::suspend(bool checkIfPowerKeyReleased) {
|
||||
Keyboard::Device::shutdown();
|
||||
|
||||
Ion::Keyboard::State OnlyPowerKeyDown = Keyboard::State(Keyboard::Key::B2);
|
||||
if (scan == OnlyPowerKeyDown) {
|
||||
if (scan == OnlyPowerKeyDown || USB::isPlugged()) {
|
||||
// Wake up
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user