refactor: remove IMU and button init calls from app_main
Remove button_Init(), imu_manager_init(), and imu_manager_set_shake_callback() calls from mimi.c along with their corresponding include directives. Signed-off-by: Asklv <boironic@gmail.com>
This commit is contained in:
@@ -23,8 +23,6 @@
|
|||||||
#include "tools/tool_registry.h"
|
#include "tools/tool_registry.h"
|
||||||
#include "cron/cron_service.h"
|
#include "cron/cron_service.h"
|
||||||
#include "heartbeat/heartbeat.h"
|
#include "heartbeat/heartbeat.h"
|
||||||
#include "buttons/button_driver.h"
|
|
||||||
#include "imu/imu_manager.h"
|
|
||||||
#include "skills/skill_loader.h"
|
#include "skills/skill_loader.h"
|
||||||
|
|
||||||
static const char *TAG = "mimi";
|
static const char *TAG = "mimi";
|
||||||
@@ -110,11 +108,6 @@ void app_main(void)
|
|||||||
ESP_LOGI(TAG, "PSRAM free: %d bytes",
|
ESP_LOGI(TAG, "PSRAM free: %d bytes",
|
||||||
(int)heap_caps_get_free_size(MALLOC_CAP_SPIRAM));
|
(int)heap_caps_get_free_size(MALLOC_CAP_SPIRAM));
|
||||||
|
|
||||||
/* Input */
|
|
||||||
button_Init();
|
|
||||||
imu_manager_init();
|
|
||||||
imu_manager_set_shake_callback(NULL);
|
|
||||||
|
|
||||||
/* Phase 1: Core infrastructure */
|
/* Phase 1: Core infrastructure */
|
||||||
ESP_ERROR_CHECK(init_nvs());
|
ESP_ERROR_CHECK(init_nvs());
|
||||||
ESP_ERROR_CHECK(esp_event_loop_create_default());
|
ESP_ERROR_CHECK(esp_event_loop_create_default());
|
||||||
|
|||||||
Reference in New Issue
Block a user