mirror of
https://github.com/luckfox-eng29/kvm.git
synced 2026-05-27 16:45:08 +02:00
Update App version to 0.1.2
Signed-off-by: luckfox-eng29 <eng29@luckfox.com>
This commit is contained in:
4
usb.go
4
usb.go
@@ -130,7 +130,7 @@ func rpcGetKeyboardLedState() (state usbgadget.KeyboardState) {
|
||||
var usbState = "unknown"
|
||||
|
||||
func rpcGetUSBState() (state string) {
|
||||
return gadget.GetUsbState()
|
||||
return gadget.GetUsbState(config.UsbEnhancedDetection)
|
||||
}
|
||||
|
||||
func triggerUSBStateUpdate() {
|
||||
@@ -144,7 +144,7 @@ func triggerUSBStateUpdate() {
|
||||
}
|
||||
|
||||
func checkUSBState() {
|
||||
newState := gadget.GetUsbState()
|
||||
newState := gadget.GetUsbState(config.UsbEnhancedDetection)
|
||||
if newState == usbState {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user