Merge "[ion] Abort suspend when the USB is plugged"

This commit is contained in:
Émilie Feral
2017-05-23 16:01:16 +02:00
committed by Gerrit

View File

@@ -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;
}