From 99335f90c1d01f6305712a2bd5a6ffa05b6708d8 Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Fri, 17 Nov 2023 18:08:45 -0800 Subject: [PATCH] F0 heater was broken by cddcd0d88c6fd2d09c61412ca01b8a1bc0c373b8 --- firmware/heater_thread.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/firmware/heater_thread.cpp b/firmware/heater_thread.cpp index bdb0e20..156fdbc 100644 --- a/firmware/heater_thread.cpp +++ b/firmware/heater_thread.cpp @@ -13,10 +13,10 @@ static const PWMConfig heaterPwmConfig = { .period = 1024, .callback = nullptr, .channels = { - {PWM_OUTPUT_ACTIVE_HIGH, nullptr}, - {PWM_OUTPUT_ACTIVE_HIGH, nullptr}, - {PWM_OUTPUT_ACTIVE_HIGH, nullptr}, - {PWM_OUTPUT_ACTIVE_HIGH, nullptr} + {PWM_OUTPUT_ACTIVE_HIGH | PWM_COMPLEMENTARY_OUTPUT_ACTIVE_LOW, nullptr}, + {PWM_OUTPUT_ACTIVE_HIGH | PWM_COMPLEMENTARY_OUTPUT_ACTIVE_LOW, nullptr}, + {PWM_OUTPUT_ACTIVE_HIGH | PWM_COMPLEMENTARY_OUTPUT_ACTIVE_LOW, nullptr}, + {PWM_OUTPUT_ACTIVE_HIGH | PWM_COMPLEMENTARY_OUTPUT_ACTIVE_LOW, nullptr} }, .cr2 = 0, #if STM32_PWM_USE_ADVANCED