fix target config priority between NVS and dedicated builds

This commit is contained in:
Philippe G
2022-01-26 15:09:25 -08:00
parent 6d1cf28fd6
commit 839f31d485
2 changed files with 2 additions and 2 deletions

View File

@@ -4,7 +4,7 @@
const struct target_s *target_set[] = { &target_muse, NULL };
void target_init(char *target) {
for (int i = 0; target_set[i]; i++) if (strcasestr(target_set[i]->model, target)) {
for (int i = 0; *target && target_set[i]; i++) if (strcasestr(target_set[i]->model, target)) {
target_set[i]->init();
break;
}