4
0
Fork 0
mirror of https://github.com/zzzzDev4/IAS-Better-Tea.git synced 2025-04-21 07:31:20 +02:00

small fix

This commit is contained in:
zzzz 2024-06-14 14:39:04 +02:00
parent b87d97e2be
commit 568a5e06e1

View file

@ -342,8 +342,8 @@ void loop()
} }
if (buttonLeft.isJustPressed()) if (buttonLeft.isJustPressed())
{ {
// decrease steeping time for next brew // decrease steeping time for next brew // TODO: this should be smarter
state = State::WAIT_FOR_RFID_SCAN; currentTea.m_steepingSeconds -= 10;
String payload = teaNet.bundleSteepingTimeChange(currentTea.m_steepingSeconds); String payload = teaNet.bundleSteepingTimeChange(currentTea.m_steepingSeconds);
Serial.println(payload); Serial.println(payload);
@ -356,13 +356,15 @@ void loop()
delay(1000); delay(1000);
break; break;
} }
state = State::WAIT_FOR_RFID_SCAN;
smartDisplay.playTeaAnimationPartTwo(32, "", "Done!", "", ""); smartDisplay.playTeaAnimationPartTwo(32, "", "Done!", "", "");
smartStrip.reset(); smartStrip.reset();
} }
if (buttonRight.isJustPressed()) if (buttonRight.isJustPressed())
{ {
// increase steeping time for next brew // increase steeping time for next brew // TODO: this should be smarter
state = State::WAIT_FOR_RFID_SCAN; currentTea.m_steepingSeconds += 10;
String payload = teaNet.bundleSteepingTimeChange(currentTea.m_steepingSeconds); String payload = teaNet.bundleSteepingTimeChange(currentTea.m_steepingSeconds);
Serial.println(payload); Serial.println(payload);
@ -375,6 +377,7 @@ void loop()
delay(1000); delay(1000);
break; break;
} }
state = State::WAIT_FOR_RFID_SCAN;
smartDisplay.playTeaAnimationPartTwo(32, "", "Done!", "", ""); smartDisplay.playTeaAnimationPartTwo(32, "", "Done!", "", "");
smartStrip.reset(); smartStrip.reset();
} }