Skip to content

Commit

Permalink
Explicitly initialize all callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
kigster committed Dec 24, 2014
1 parent d451654 commit 781e77c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
.DS_Store
6 changes: 6 additions & 0 deletions OneButton.cpp
Expand Up @@ -40,6 +40,12 @@ OneButton::OneButton(int pin, int activeLow)
_buttonPressed = HIGH;
} // if


_doubleClickFunc = NULL;
_pressFunc = NULL;
_longPressStartFunc = NULL;
_longPressStopFunc = NULL;
_duringLongPressFunc = NULL;
} // OneButton


Expand Down

0 comments on commit 781e77c

Please sign in to comment.