From 893f8bb17b4d6aa700caa7513ddd04332b346c82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Mon, 22 May 2017 13:16:54 +0200 Subject: [PATCH] [ion] COrrect potential bug Change-Id: I76f9c9d75f8f659fb69b3e027e7ff69fd8e06794 --- ion/src/device/power.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ion/src/device/power.cpp b/ion/src/device/power.cpp index 2486dddb7..049a404d6 100644 --- a/ion/src/device/power.cpp +++ b/ion/src/device/power.cpp @@ -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;