ratgdo / mqtt-ratgdo

ratgdo via mqtt
GNU General Public License v2.0
76 stars 16 forks source link

Fix "onMillis" and "currentMillis" variables data types to align millis() return type #69

Open edrikk opened 5 months ago

edrikk commented 5 months ago

Related indirectly to issue 45.

The millis() function returns an "unsigned long" which is 32 bits on Arduino devices.

It's not a bad idea to define variables working with/against millis() as "unsigned long" similar to this recent commit in the homekit firmware.

edrikk commented 5 months ago

Ping @PaulWieland