SuperHouse / AirQualitySensorD1Mini

Particulate Matter Sensor firmware for a Plantower PMS5003 connected to a Wemos D1 Mini
32 stars 10 forks source link

Fix button state tracking #7

Open pfeerick opened 4 years ago

pfeerick commented 4 years ago

checkModeButton() was returning too early, and preventing the state of the button being tracked to prevent multiple events being triggered on a single button press. So holding the button would keep rotating through the screens, rather than simply advancing to the next.