rancilio-pid / clevercoffee

Do-It-Yourself PID für Espressomaschinen
https://clevercoffee.de
GNU General Public License v2.0
277 stars 144 forks source link

IOSwitch: Allow seeting initial state #501

Closed simonspa closed 5 months ago

simonspa commented 5 months ago

This is a small improvement to the IOSwitch class which allows setting the initial state.

This fixes an issue when the "water empty" state would briefly flash at startup because the sensor initial state is LOW, but we use HIGH as the "water is present" state.