diff --git a/src/shelly_output.cpp b/src/shelly_output.cpp index b41ada80..bfd4f4b9 100644 --- a/src/shelly_output.cpp +++ b/src/shelly_output.cpp @@ -73,7 +73,15 @@ Status OutputPin::SetStatePWM(float duty, const char *source) { LOG(LL_INFO, ("Duty: %.3f", duty)); if (duty == 0) { mgos_pwm_set(pin_, 0, 0); - } else { + } +#if CS_PLATFORM == CS_P_ESP8266 + else if (duty == 1) { + mgos_gpio_write(pin_, 1); + LOG(LL_INFO, + ("Output %d: %s (%s)", id(), (duty == 0 ? "OFF" : "ON"), source)); + } +#endif + else { mgos_pwm_set(pin_, 400, duty); LOG(LL_INFO, ("Output %d: %f (%s)", id(), duty, source)); }