sim: change brightness only when screen is on (#66)
Fixes: https://github.com/InfiniTimeOrg/InfiniSim/issues/45
This commit is contained in:
parent
3d52e4a826
commit
8460a5207a
4
main.cpp
4
main.cpp
|
@ -668,9 +668,9 @@ public:
|
|||
} 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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user