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

@@ -449,7 +449,7 @@ void app_main()
ESP_LOGI(TAG,"Initializing display");
display_init("SqueezeESP32");
MEMTRACE_PRINT_DELTA();
char *target = config_alloc_get_default(NVS_TYPE_STR, "target", CONFIG_TARGET, 0);
char *target = config_alloc_get_str("target", CONFIG_TARGET, NULL);
if (target) {
target_init(target);
free(target);