From 25f4a61de926e62e8c766491a67eaf2c576c4fb6 Mon Sep 17 00:00:00 2001 From: zwsd Date: Tue, 27 Sep 2022 18:43:21 +0800 Subject: [PATCH] update --- main/heating_plate.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main/heating_plate.c b/main/heating_plate.c index 6c89e5c..8a13534 100644 --- a/main/heating_plate.c +++ b/main/heating_plate.c @@ -12,6 +12,7 @@ #include "heating_plate.h" #include "driver/ledc.h" #include "esp_err.h" +#include "light.h" #define LEDC_TIMER LEDC_TIMER_0 // #define LEDC_MODE LEDC_LOW_SPEED_MODE // @@ -70,10 +71,12 @@ void T_heating_plate_schedule(void) if (get_temp_cb_s() >= heating_plate_target_temp + heating_plate_variable_temperature_range) { T_heating_plate_stop(); + T_heating_plate_light_set_rgb_by_state(HeatComplete); } else if (get_temp_cb_s() <= heating_plate_target_temp - heating_plate_variable_temperature_range) { T_heating_plate_start(); + T_heating_plate_light_set_rgb_by_state(Heating); } } }