mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
fix for keyboard LED operation
This commit is contained in:
parent
12e184349f
commit
8f86fd4e04
1 changed files with 6 additions and 3 deletions
|
@ -163,9 +163,12 @@ protected:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(old_keys != kbdLockingKeys.bLeds && hid)
|
if(old_keys != kbdLockingKeys.bLeds && hid){
|
||||||
return (hid->SetReport(0, 0/*hid->GetIface()*/, 2, 0, 1, &kbdLockingKeys.bLeds));
|
uint8_t lockLeds = kbdLockingKeys.bLeds;
|
||||||
|
|
||||||
|
return (hid->SetReport(0, 0/*hid->GetIface()*/, 2, 0, 1, &lockLeds));
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue