Changed the Order

This commit is contained in:
Tim Windelschmidt 2016-11-29 19:46:07 +01:00
parent aa03dd5dce
commit 1a2ac270ee
1 changed files with 2 additions and 2 deletions

View File

@ -72,8 +72,8 @@ void mpdbass(bool start) {
if (start == true){ //If Button pressed
Serial.println("Play");
client.println("addid \"users/lucas/Alben/Function/Incubation/01 Voiceprint.flac\" 0"); //Adds the Song as First Song
client.println("setvol 100"); //set Max volume
client.println("play 0"); //Play the First song
client.println("setvol 100"); //set Max volume
} else if (start == false) {
Serial.println("Remove");
client.println("delete 0"); //Remove the first Song (The Bass Song)
@ -84,4 +84,4 @@ void mpdbass(bool start) {
String line = client.readStringUntil('\r');
Serial.print(line);
}
}
}