mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
formatting
This commit is contained in:
@@ -54,7 +54,7 @@ bool PButton::init(uint8_t pin, bool pullMode) {
|
||||
|
||||
#if defined(ESP32)
|
||||
pinMode(pin_, pullMode ? INPUT_PULLUP : INPUT_PULLDOWN);
|
||||
#else // esp8266 and standalone
|
||||
#else // esp8266 and standalone
|
||||
pinMode(pin_, pullMode ? INPUT_PULLUP : INPUT);
|
||||
#endif
|
||||
enabled_ = (digitalRead(pin_) == pullMode); // see if a button is connected
|
||||
|
||||
Reference in New Issue
Block a user