mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Merge pull request #172 from gorakk/master
* pull172: Fix formatting fix for keyboard LED operation Revert "Correction to keyboard LED operation" Correction to keyboard LED operation
This commit is contained in:
commit
523e66e827
1 changed files with 4 additions and 2 deletions
|
@ -163,8 +163,10 @@ 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