From f78433c20931eb0ec2df0a279692f06a4896fbf9 Mon Sep 17 00:00:00 2001 From: Matthias Hertel Date: Wed, 26 Sep 2018 18:59:22 +0200 Subject: [PATCH] compiler warnings removed. --- src/OneButton.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/OneButton.h b/src/OneButton.h index 4b6f748..b7ab6c4 100644 --- a/src/OneButton.h +++ b/src/OneButton.h @@ -17,6 +17,7 @@ // 26.09.2018 Anatoli Arkhipenko: Included solution to use library with other // sources of input. // 26.09.2018 Initialization moved into class declaration. +// 26.09.2018 Jay M Ericsson: compiler warnings removed. // ----- #ifndef OneButton_h @@ -82,11 +83,11 @@ class OneButton private: int _pin; // hardware pin number. - int _debounceTicks = 50; // number of ticks for debounce times. - int _clickTicks = 600; // number of ticks that have to pass by - // before a click is detected. - int _pressTicks = 1000; // number of ticks that have to pass by before a long - // button press is detected + unsigned int _debounceTicks = 50; // number of ticks for debounce times. + unsigned int _clickTicks = 600; // number of ticks that have to pass by + // before a click is detected. + unsigned int _pressTicks = 1000; // number of ticks that have to pass by + // before a long button press is detected int _buttonPressed;