Skip to content

Commit

Permalink
compiler warnings removed.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathertel committed Sep 26, 2018
1 parent cee0985 commit f78433c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/OneButton.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit f78433c

Please sign in to comment.