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