refactor(architecture): unify facade headers and remove unused lcd dependency
This commit is contained in:
@@ -1,15 +1,6 @@
|
||||
#include "system_runtime.h"
|
||||
|
||||
#include "platform_bootstrap.h"
|
||||
#include "wifi_manager.h"
|
||||
|
||||
static bool s_runtime_started;
|
||||
#include "domain.h"
|
||||
|
||||
esp_err_t system_runtime_start(void) {
|
||||
if (s_runtime_started) {
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t err = platform_bootstrap_init();
|
||||
if (err != ESP_OK) {
|
||||
return err;
|
||||
@@ -17,21 +8,16 @@ esp_err_t system_runtime_start(void) {
|
||||
|
||||
err = wifi_manager_start();
|
||||
if (err != ESP_OK) {
|
||||
// Reset platform state so lifecycle retry runs from a clean baseline.
|
||||
(void)wifi_manager_stop();
|
||||
return err;
|
||||
}
|
||||
|
||||
s_runtime_started = true;
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t system_runtime_shutdown(void) {
|
||||
if (!s_runtime_started) {
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t err = wifi_manager_stop();
|
||||
s_runtime_started = false;
|
||||
return err;
|
||||
return wifi_manager_stop();
|
||||
}
|
||||
|
||||
esp_err_t system_runtime_bootstrap(void) {
|
||||
|
||||
Reference in New Issue
Block a user