floatplane / MitsuQTT

Use ESP8266/ESP32 hardware to control Mitsubishi heat pumps via MQTT
GNU Lesser General Public License v2.1
3 stars 2 forks source link

Add Moment object, eliminate rollover bugs in time interval calculation #55

Closed floatplane closed 4 months ago

floatplane commented 4 months ago

The previous code for interval checking was prone to errors, given that the 32-bit arduino millis() function rolls over relatively frequently - this just makes that class of errors impossible.