Safecast / bGeigieZen

bGiegieZen an Open Source Geiger Counter.
https://bgeigiezen.safecast.jp
22 stars 6 forks source link

Fix for millis() rollover when computing time interval. My first zen project commit from vscode/pio. #44

Closed BeakeS closed 1 year ago

BeakeS commented 1 year ago

Simple fix to compare time-intervals instead of comparing time-values to avoid millis() rollover issues which happens every 49.7 days. I know this fix is really not needed for start-up code (when millis() is initialized) but it's nice to be consistent.