xoseperez / sonoffsc

Itead Studio SonoffSC custom firmware with MQTT and Domoticz support
GNU General Public License v3.0
104 stars 35 forks source link

Fix int overflow when setting interval to value over 32s. #15

Closed kersing closed 7 years ago

kersing commented 7 years ago

Due to integer overflow setting the interval to values over 32 seconds does not work. Promoting the calculation to long maths fixes it.