Skip to content

Commit

Permalink
fix brightness
Browse files Browse the repository at this point in the history
  • Loading branch information
DantSu committed Jul 16, 2024
1 parent 81d6505 commit 81fc503
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/storyTeller/storyTeller.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,17 @@ int main(int argc, char *argv[])
break;
case HW_BTN_VOLUME_DOWN :
if(isMenuPressed) {
settings_setBrightness(settings.brightness - 1, true, false);
osd_showBrightnessBar(settings.brightness);
if((settings.brightness - 1) >= 0) {
settings_setBrightness(settings.brightness - 1, true, false);
osd_showBrightnessBar(settings.brightness);
}
applock_stopTimer();
menuPreventDefault = true;
} else {
settings_setVolume(settings.volume - 1, true);
osd_showVolumeBar(settings.volume, false);
if((settings.volume - 1) >= 0) {
settings_setVolume(settings.volume - 1, true);
osd_showVolumeBar(settings.volume, false);
}
}
break;
case HW_BTN_VOLUME_UP :
Expand Down

0 comments on commit 81fc503

Please sign in to comment.