Start of 5.X work

This commit is contained in:
Sebastien L
2025-03-18 17:38:34 -04:00
parent c0ddf0a997
commit 73bd096f37
442 changed files with 227862 additions and 21075 deletions

View File

@@ -1,10 +1,13 @@
#include "string.h"
#include "esp_log.h"
#include "targets.h"
static const char * TAG = "targets";
const struct target_s *target_set[] = { &target_muse, NULL };
void target_init(char *target) {
ESP_LOGI(TAG,"Checking if target %s needs init",target);
for (int i = 0; *target && target_set[i]; i++) if (strcasestr(target_set[i]->model, target)) {
ESP_LOGI(TAG,"Initializing target %s ",target);
target_set[i]->init();
break;
}