From 34e0daefcc7ba3906490d4d3f681e69bf153d56b Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Fri, 20 Nov 2020 09:37:21 +0100 Subject: [PATCH] Add compile option for PWM variant in latest Arduino Stage there is now the possibility to choose between two variants how software PWM is implemented. --- platformio_override_sample.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platformio_override_sample.ini b/platformio_override_sample.ini index 7e63fcd9a..fc1c70576 100644 --- a/platformio_override_sample.ini +++ b/platformio_override_sample.ini @@ -93,6 +93,9 @@ platform_packages = framework-arduinoespressif8266 @ https://github.co build_unflags = ${esp_defaults.build_unflags} -Wswitch-unreachable build_flags = ${esp82xx_defaults.build_flags} +; *** Use ONE of the two PWM variants. Tasmota default is Locked PWM + ;-DWAVEFORM_LOCKED_PHASE + -DWAVEFORM_LOCKED_PWM -Wno-switch-unreachable