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:
Kristian Sloth Lauszus 2015-09-04 00:41:40 +02:00
commit 523e66e827

View file

@ -163,8 +163,10 @@ 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;
};