fix issue #752
This commit is contained in:
1 parent
e73bd19a82
commit
399e815cd8
2 files changed
+7
-3
No files matched your search
+3
-3
@@ -11,10 +11,10 @@ static const char TAG[] = __FILE__;
|
||||
static Button *b = NULL;
|
||||
|
||||
void button_init(int pin) {
|
||||
#ifdef BUTTON_PULLDOWN
|
||||
b = new Button(pin);
|
||||
#else
|
||||
#ifdef BUTTON_PULLUP
|
||||
b = new ButtonPullup(pin);
|
||||
#else
|
||||
b = new Button(pin, !BUTTON_ACTIVEHIGH);
|
||||
#endif
|
||||
|
||||
// attach events to the button
|
||||
|
||||
Reference in new issue
Block a user