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("{}"))