Browse Source

update

Finny_test
zwsd 3 years ago
parent
commit
85eccd8661
  1. 1
      main/CMakeLists.txt
  2. 2
      main/app_main.cpp
  3. 7
      main/cover.c
  4. 5
      main/cover.h

1
main/CMakeLists.txt

@ -7,6 +7,7 @@ set(srcs "app_main.cpp" #
"wifi.c" "wifi.c"
"heating_plate.c" "heating_plate.c"
"temp.c" "temp.c"
"cover.c"
) )
idf_component_register(SRCS "${srcs}"# idf_component_register(SRCS "${srcs}"#

2
main/app_main.cpp

@ -10,6 +10,7 @@ extern "C"
#include "heating_plate.h" #include "heating_plate.h"
#include "temp.h" #include "temp.h"
#include "port.h" #include "port.h"
#include "cover.h"
} }
#define REACTION_TIME_MS 10 * 60 * 1000 #define REACTION_TIME_MS 10 * 60 * 1000
@ -122,6 +123,7 @@ extern "C" void app_main(void)
T_wifi_init(); T_wifi_init();
T_temp_init(); T_temp_init();
T_heating_plate_init(&heating_plate_structer); T_heating_plate_init(&heating_plate_structer);
cover_init();
T_key_registered_cb(process_key_event); T_key_registered_cb(process_key_event);
T_wifi_registered_cb(); T_wifi_registered_cb();

7
main/cover.c

@ -0,0 +1,7 @@
#include "cover.h"
void cover_init(void) {}
bool cover_get_level(void)
{
return false;
}

5
main/cover.h

@ -0,0 +1,5 @@
#pragma once
#include <stdbool.h>
void cover_init(void);
bool cover_get_level(void);
Loading…
Cancel
Save