mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[ion/device] Fix unresponsive keyboard
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user