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