Skip to content

Commit

Permalink
Merge pull request #7 from philwc/patch-1
Browse files Browse the repository at this point in the history
Move elseif to correct level
  • Loading branch information
witnessmenow authored Nov 8, 2023
2 parents 5f0c67d + 274c40d commit acaac37
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions SpotifyDiyThing/SpotifyDiyThing.ino
Original file line number Diff line number Diff line change
Expand Up @@ -271,19 +271,19 @@ void loop()
Serial.println(displayImageResult);
}
}
else if (status == 204)
{
songStartMillis = 0;
Serial.println("Doesn't seem to be anything playing");
}
else
{
Serial.print("Error: ");
Serial.println(status);
}

requestDueTime = millis() + delayBetweenRequests;
}
else if (status == 204)
{
songStartMillis = 0;
Serial.println("Doesn't seem to be anything playing");
}
else
{
Serial.print("Error: ");
Serial.println(status);
}

requestDueTime = millis() + delayBetweenRequests;
}
if (songStartMillis != 0 && millis() > progressDueTime) {
long songProgress = millis() - songStartMillis;
Expand Down

0 comments on commit acaac37

Please sign in to comment.