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;
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;