Fix major bugs caused by minor code oversights
authorLukáš Jiřiště <jiriste@icpf.cas.cz>
Tue, 10 Dec 2024 15:15:10 +0000 (16:15 +0100)
committerLukáš Jiřiště <jiriste@icpf.cas.cz>
Tue, 10 Dec 2024 15:15:10 +0000 (16:15 +0100)
commitfb8efa30eadb5a01d5972fc9190bcddc9588cebd
tree524e4f7ddcc51f74cc116f480015e10bb7f6aea5
parentc6ef4ea110e9a8d06a850460b08c6c80ab3cad04
Fix major bugs caused by minor code oversights

The if statement did not use curly braces, so the following block was
executed unconditionally.

The three-way valve had its values mixed up, which is corrected now.

The sleep is now encapsulated in a while loop to prevent any interrupt
from waking the processor up (other than the one caused by flipping the
switch).
Servomatic.ino