Skip to content

Commit acaac37

Browse files
authored
Merge pull request #7 from philwc/patch-1
Move elseif to correct level
2 parents 5f0c67d + 274c40d commit acaac37

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

SpotifyDiyThing/SpotifyDiyThing.ino

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -271,19 +271,19 @@ void loop()
271271
Serial.println(displayImageResult);
272272
}
273273
}
274-
else if (status == 204)
275-
{
276-
songStartMillis = 0;
277-
Serial.println("Doesn't seem to be anything playing");
278-
}
279-
else
280-
{
281-
Serial.print("Error: ");
282-
Serial.println(status);
283-
}
284-
285-
requestDueTime = millis() + delayBetweenRequests;
286274
}
275+
else if (status == 204)
276+
{
277+
songStartMillis = 0;
278+
Serial.println("Doesn't seem to be anything playing");
279+
}
280+
else
281+
{
282+
Serial.print("Error: ");
283+
Serial.println(status);
284+
}
285+
286+
requestDueTime = millis() + delayBetweenRequests;
287287
}
288288
if (songStartMillis != 0 && millis() > progressDueTime) {
289289
long songProgress = millis() - songStartMillis;

0 commit comments

Comments
 (0)