From 11287e21e61f97c9b48a182f5676846b4050d1a8 Mon Sep 17 00:00:00 2001 From: zzzz Date: Fri, 14 Jun 2024 19:26:57 +0200 Subject: [PATCH] small bugfixes --- src/main.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index fb099de..a786b26 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -372,9 +372,9 @@ void loop() JSONVar res = teaNet.httpsPOSTRequest(shuttleServer + "/tea-steeping-time-log/" + currentTea.m_id, payload); // now update steeping time for next use - currentTea.m_steepingSeconds += 10; - String payload = teaNet.bundleSteepingTimeChange(currentTea.m_steepingSeconds); - JSONVar res2 = teaNet.httpsPOSTRequest(shuttleServer + "/tea-steeping-time/" + currentTea.m_id, payload); + currentTea.m_steepingSeconds -= 10; + String payload2 = teaNet.bundleSteepingTimeChange(currentTea.m_steepingSeconds); + JSONVar res2 = teaNet.httpsPOSTRequest(shuttleServer + "/tea-steeping-time/" + currentTea.m_id, payload2); // catch possible failure if (res == JSON.parse("{}")) @@ -403,9 +403,9 @@ void loop() JSONVar res = teaNet.httpsPOSTRequest(shuttleServer + "/tea-steeping-time-log/" + currentTea.m_id, payload); // now update steeping time for next use - currentTea.m_steepingSeconds -= 10; - String payload = teaNet.bundleSteepingTimeChange(currentTea.m_steepingSeconds); - JSONVar res2 = teaNet.httpsPOSTRequest(shuttleServer + "/tea-steeping-time/" + currentTea.m_id, payload); + currentTea.m_steepingSeconds += 10; + String payload2 = teaNet.bundleSteepingTimeChange(currentTea.m_steepingSeconds); + JSONVar res2 = teaNet.httpsPOSTRequest(shuttleServer + "/tea-steeping-time/" + currentTea.m_id, payload2); // catch possible failure if (res == JSON.parse("{}"))