mathertel/OneButton — pull request #4 by kigster (2014-12-24 09:10:45+00:00)
Title: Explicitly initialize all callbacks

I was having an issue with this library under Teensy. After many hours spent investigating, it was crashing in in OneButton.cpp:127, the following few lines:

```c++
if (_pressFunc) _pressFunc();
if (_longPressStartFunc) _longPressStartFunc();
if (_duringLongPressFunc) _duringLongPressFunc();
```

I did not have these callbacks set, but somehow they were not NULL/false ether, so they were being "called" and crashing the program.

After setting them to NULL explicitly the problem went away.

Thanks for writing such flexible button library for Arduino. It rocks, and I use it on all of my projects now :)