From 12e184349feef534c9f1b074c61582dc869d89f6 Mon Sep 17 00:00:00 2001 From: Allen Johnson-Weltzin Date: Mon, 31 Aug 2015 10:21:26 -0500 Subject: [PATCH] Revert "Correction to keyboard LED operation" This reverts commit 26afaf4dea2fbbc78305f6444d15760abc6cb74a. --- hidboot.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/hidboot.h b/hidboot.h index 55135d25..fb63ec5e 100644 --- a/hidboot.h +++ b/hidboot.h @@ -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; };