From 25765a179fc577f082357d0b4ecf3e6d3d03442e Mon Sep 17 00:00:00 2001 From: zzzz Date: Wed, 26 Jun 2024 22:54:07 +0200 Subject: [PATCH] moved end of animation behind all requests --- src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 427c2b7..cbbeb63 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -96,7 +96,6 @@ void setup() teaNet.init(ssid, password); - smartDisplay.playTeaAnimationPartTwo(32, "", "Success!", "", ""); // load config JSONVar result = teaNet.httpsGETRequest(shuttleServer + "/configuration"); @@ -112,6 +111,8 @@ void setup() feedbackTimeoutSeconds = result["feedback_timeout"]; } + smartDisplay.playTeaAnimationPartTwo(32, "", "Success!", "", ""); + smartDisplay.playTeaAnimation(); delay(250); @@ -180,6 +181,7 @@ void loop() { smartDisplay.playTeaAnimationPartOne(32, "", "Loading...", "", ""); + Serial.println(currentTea.m_rfidCode); JSONVar result = teaNet.httpsGETRequest(shuttleServer + "/tea-by-rfid/" + currentTea.m_rfidCode); CATCH_NET_FAILURE(result, "GET FAILED")