Skip to content

Commit 87801b9

Browse files
committed
fix: reset tankChanged variable
1 parent 58903a7 commit 87801b9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

TissueProcessor/TissueProcessor.ino

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ void syncTankID()
147147
if (pendingTank < 1 || pendingTank > 12)
148148
{
149149
tankException = true;
150-
// Only print on change to avoid flooding serial
151150
DBG("Wrong Tank ID: ");
152151
DBGLN(currentRead);
153152
return;
@@ -654,6 +653,8 @@ void verifyingActionChanged(EventArgs e)
654653
{
655654
if (e.action == ENTRY)
656655
syncTankID();
656+
if (e.action == EXIT)
657+
tankChanged = false;
657658
}
658659

659660
bool unknownDirectionPredicate(id_t id)
@@ -770,6 +771,7 @@ void idleActionChanged(EventArgs e)
770771
outputsKill();
771772

772773
syncTankID();
774+
tankChanged = false;
773775
DBGLN("Enter idle");
774776

775777
if (finished)

0 commit comments

Comments
 (0)