[ion] COrrect potential bug

Change-Id: I76f9c9d75f8f659fb69b3e027e7ff69fd8e06794
This commit is contained in:
Émilie Feral
2017-05-22 13:16:54 +02:00
parent 52c15de070
commit 893f8bb17b

View File

@@ -56,7 +56,7 @@ void Ion::Power::suspend(bool checkIfPowerKeyReleased) {
Keyboard::State scan = Keyboard::scan();
Keyboard::Device::shutdown();
Ion::Keyboard::State OnlyPowerKeyDown = (1 << (uint8_t)Keyboard::Key::B2);
Ion::Keyboard::State OnlyPowerKeyDown = ((uint64_t)1 << (uint8_t)Keyboard::Key::B2);
if (scan == OnlyPowerKeyDown) {
// Wake up
break;