Skip to content

Commit

Permalink
sim: change brightness only when screen is on (#66)
Browse files Browse the repository at this point in the history
Fixes: #45
  • Loading branch information
NeroBurner authored Sep 18, 2022
1 parent 3d52e4a commit 8460a52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -668,9 +668,9 @@ class Framework {
} else if (key == 'C') {
batteryController.isCharging = false;
batteryController.isPowerPresent = false;
} else if (key == 'l') {
} else if (key == 'l' && !screen_off_created) {
brightnessController.Higher();
} else if (key == 'L') {
} else if (key == 'L' && !screen_off_created) {
brightnessController.Lower();
} else if (key == 'p') {
this->print_memory_usage = true;
Expand Down

0 comments on commit 8460a52

Please sign in to comment.