Commit 1c8959da authored by Nitek's avatar Nitek

Fix underflow in volume control

parent 1bbc176f
......@@ -416,7 +416,7 @@ void playMp3() {
void volumeUp() {
volume -= 5;
if(volume < 0) {
if(volume > 50) {
volume = 0;
}
musicPlayer.setVolume(volume, volume);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment