puuu / ESPiLight

ESPiLight - pilight 433.92 MHz protocols library for Arduino
GNU General Public License v3.0
110 stars 41 forks source link

Handle micros() overflow every 70 minutes #58

Open mwalliczek opened 3 years ago

mwalliczek commented 3 years ago

Due to the long type of the micros() value, it will overflow and be resetted to 0 every 70 minutes. When using this value this should be handled to prevent invalid comparisons.