Browse Source

update

Finny_test
zwsd 3 years ago
parent
commit
d5f5e5c605
  1. 1
      main/app_main.cpp
  2. 3
      main/heating_plate.c

1
main/app_main.cpp

@ -133,6 +133,7 @@ void T_reaction_schedule(void)
if ((port_get_ticket() - reaction_structer.reaction_start_time) >= REACTION_TIME_MS) if ((port_get_ticket() - reaction_structer.reaction_start_time) >= REACTION_TIME_MS)
{ {
/* 反应完成 */ /* 反应完成 */
beep_set_level(true);
reaction_structer.reaction_start_flag = false; reaction_structer.reaction_start_flag = false;
} }
} }

3
main/heating_plate.c

@ -13,6 +13,7 @@
#include "driver/ledc.h" #include "driver/ledc.h"
#include "esp_err.h" #include "esp_err.h"
#include "light.h" #include "light.h"
#include "beep.h"
#define LEDC_TIMER LEDC_TIMER_0 // #define LEDC_TIMER LEDC_TIMER_0 //
#define LEDC_MODE LEDC_LOW_SPEED_MODE // #define LEDC_MODE LEDC_LOW_SPEED_MODE //
@ -71,12 +72,12 @@ void T_heating_plate_schedule(void)
if (get_temp_cb_s() >= heating_plate_target_temp + heating_plate_variable_temperature_range) if (get_temp_cb_s() >= heating_plate_target_temp + heating_plate_variable_temperature_range)
{ {
T_heating_plate_stop(); T_heating_plate_stop();
beep_set_level(true);
T_heating_plate_light_set_rgb_by_state(HeatComplete); T_heating_plate_light_set_rgb_by_state(HeatComplete);
} }
else if (get_temp_cb_s() <= heating_plate_target_temp - heating_plate_variable_temperature_range) else if (get_temp_cb_s() <= heating_plate_target_temp - heating_plate_variable_temperature_range)
{ {
T_heating_plate_start(); T_heating_plate_start();
T_heating_plate_light_set_rgb_by_state(Heating);
} }
} }
} }

Loading…
Cancel
Save