Fix display when changing volume

This commit is contained in:
Gabriel Augendre 2023-01-07 14:29:49 +01:00
parent b8f51e0716
commit 638869824c

View file

@ -112,8 +112,7 @@ void onChangeVolume(AsyncWebServerRequest *request)
preferences.putUChar(CURRENT_VOLUME, currentVolume); preferences.putUChar(CURRENT_VOLUME, currentVolume);
audio.setVolume(currentVolume); audio.setVolume(currentVolume);
Serial.print(currentVolume); Serial.print(currentVolume);
String s_volume = String(currentVolume); displayStatus();
displayText("Volume : " + s_volume);
} }
Serial.println(); Serial.println();
onStatus(request); onStatus(request);