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:
parent
b87d97e2be
commit
568a5e06e1
1 changed files with 7 additions and 4 deletions
11
src/main.cpp
11
src/main.cpp
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue