Skip to content

Commit f78433c

Browse files
committed
compiler warnings removed.
1 parent cee0985 commit f78433c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/OneButton.h

+6-5
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
// 26.09.2018 Anatoli Arkhipenko: Included solution to use library with other
1818
// sources of input.
1919
// 26.09.2018 Initialization moved into class declaration.
20+
// 26.09.2018 Jay M Ericsson: compiler warnings removed.
2021
// -----
2122

2223
#ifndef OneButton_h
@@ -82,11 +83,11 @@ class OneButton
8283

8384
private:
8485
int _pin; // hardware pin number.
85-
int _debounceTicks = 50; // number of ticks for debounce times.
86-
int _clickTicks = 600; // number of ticks that have to pass by
87-
// before a click is detected.
88-
int _pressTicks = 1000; // number of ticks that have to pass by before a long
89-
// button press is detected
86+
unsigned int _debounceTicks = 50; // number of ticks for debounce times.
87+
unsigned int _clickTicks = 600; // number of ticks that have to pass by
88+
// before a click is detected.
89+
unsigned int _pressTicks = 1000; // number of ticks that have to pass by
90+
// before a long button press is detected
9091

9192
int _buttonPressed;
9293

0 commit comments

Comments
 (0)