[ion/device] Fix unresponsive keyboard

This commit is contained in:
Romain Goyet
2019-04-17 13:36:18 +02:00
committed by Ecco
parent 52ae2a2643
commit 60cbc57a07

View File

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