From 116e3480b2cf35aca38376dedb1341bac9389f24 Mon Sep 17 00:00:00 2001 From: Nico Stuurman Date: Wed, 22 Nov 2023 13:13:49 -0800 Subject: [PATCH] ArduinoCounter: change type from int to long to enable sequences longer than 35000 --- .../ArduinoCounter/ArduinoCounter/ArduinoCounter.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DeviceAdapters/ArduinoCounter/ArduinoCounter/ArduinoCounter.ino b/DeviceAdapters/ArduinoCounter/ArduinoCounter/ArduinoCounter.ino index 2141a03e9..40bd5201e 100644 --- a/DeviceAdapters/ArduinoCounter/ArduinoCounter/ArduinoCounter.ino +++ b/DeviceAdapters/ArduinoCounter/ArduinoCounter/ArduinoCounter.ino @@ -25,8 +25,8 @@ const int outPin = 8; const unsigned long timeOut = 1000; -unsigned int counter = 0; -unsigned int limit; +unsigned long counter = 0; +unsigned long limit; boolean counting = false; boolean inputWas; boolean invert = false;