avdwebLibraries / avdweb_Switch

Switch library with longPress and doubleClick
http://www.avdweb.nl/arduino/hardware-interfacing/simple-switch-debouncer.html
GNU General Public License v3.0
45 stars 15 forks source link

fix esp32 issue : https://github.com/avandalen/avdweb_Switch/issues/15 #16

Closed oopen closed 3 years ago

oopen commented 3 years ago

please accept pull request for bug with ESP32 , and tag 1.2.2 to correct default usage.

BUG:

In file included from .pio/libdeps/esp32doit-devkit-v1/Switch/avdweb_Switch.cpp:111:0: .pio/libdeps/esp32doit-devkit-v1/Switch/avdweb_Switch.h: In constructor 'Switch::Switch(byte, byte, bool, int, int, int, int)': .pio/libdeps/esp32doit-devkit-v1/Switch/avdweb_Switch.h:50:14: error: 'Switch::polarity' will be initialized after [-Werror=reorder] const bool polarity;