Skip to content

Commit

Permalink
Show badge even if current level is 0 or 16
Browse files Browse the repository at this point in the history
  • Loading branch information
hieplpvip committed Oct 16, 2019
1 parent f23068b commit df94aca
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions AsusSMC/AsusSMC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -412,14 +412,20 @@ void AsusSMC::handleMessage(int code) {
case 0xC5: // Keyboard Backlight Down
if (hasKeybrdBLight) {
if (version_major <= 18) dispatchTCReport(kHIDUsage_AV_TopCase_IlluminationDown);
else if (kbl_level > 0) setKBLLevel(--kbl_level, true);
else {
if (kbl_level > 0) --kbl_level;
setKBLLevel(kbl_level, true);
}
}
break;

case 0xC4: // Keyboard Backlight Up
if (hasKeybrdBLight) {
if (version_major <= 18) dispatchTCReport(kHIDUsage_AV_TopCase_IlluminationUp);
else if (kbl_level < 16) setKBLLevel(++kbl_level, true);
else {
if (kbl_level < 16) ++kbl_level;
setKBLLevel(kbl_level, true);
}
}
break;

Expand Down

0 comments on commit df94aca

Please sign in to comment.