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:
Asklv
2026-02-25 10:00:00 +08:00
parent b5a609e174
commit cc20ae58d9

View File

@@ -23,8 +23,6 @@
#include "tools/tool_registry.h"
#include "cron/cron_service.h"
#include "heartbeat/heartbeat.h"
#include "buttons/button_driver.h"
#include "imu/imu_manager.h"
#include "skills/skill_loader.h"
static const char *TAG = "mimi";
@@ -110,11 +108,6 @@ void app_main(void)
ESP_LOGI(TAG, "PSRAM free: %d bytes",
(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 */
ESP_ERROR_CHECK(init_nvs());
ESP_ERROR_CHECK(esp_event_loop_create_default());