Skip to content

Commit b700016

Browse files
committed
"Update index.html: rename TL136 Sensor to Sensor; enhance AutomationHandler to disable pump and fill on default case"
1 parent 0c5c844 commit b700016

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

data/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ <h1 style="font-weight: lighter"><b>BYTE</b>LEVEL</h1>
433433
</div>
434434
</div>
435435

436-
<div class="group-title">TL136 Sensor</div>
436+
<div class="group-title">Sensor</div>
437437
<div class="chart-container">
438438
<canvas id="adcChart"></canvas>
439439
</div>

src/AutomationHandler.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,12 @@ void AutomationHandler::loop()
169169
handleFill();
170170
break;
171171
default:
172-
// Do nothing.
172+
// Disable Relais.
173+
if (fillM || pumpM)
174+
{
175+
setPump(false);
176+
setFill(false);
177+
}
173178
break;
174179
}
175180
}

0 commit comments

Comments
 (0)