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