From 60cbc57a0782336ac7b0fa255ca1a166dd7894de Mon Sep 17 00:00:00 2001 From: Romain Goyet Date: Wed, 17 Apr 2019 13:36:18 +0200 Subject: [PATCH] [ion/device] Fix unresponsive keyboard --- ion/src/device/events_keyboard_platform.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ion/src/device/events_keyboard_platform.cpp b/ion/src/device/events_keyboard_platform.cpp index 4c2b1a605..0ea71ee61 100644 --- a/ion/src/device/events_keyboard_platform.cpp +++ b/ion/src/device/events_keyboard_platform.cpp @@ -13,7 +13,7 @@ Event getPlatformEvent() { bool usbPlugged = USB::isPlugged(); if (usbPlugged != sLastUSBPlugged) { sLastUSBPlugged = usbPlugged; - return Events::USBPlug; + return USBPlug; } // Second, check if the USB device has been connected to an USB host @@ -21,9 +21,11 @@ Event getPlatformEvent() { if (usbEnumerated != sLastUSBEnumerated) { sLastUSBEnumerated = usbEnumerated; if (usbEnumerated) { - return Events::USBEnumeration; + return USBEnumeration; } } + + return None; } }