proper handling of target config between NVS and dedicated - release

This commit is contained in:
Philippe G
2022-01-26 14:51:08 -08:00
parent 7bfaa05ad2
commit 3d8c3ae776
5 changed files with 49 additions and 50 deletions

View File

@@ -478,7 +478,7 @@ void app_main()
ESP_LOGI(TAG,"Initializing display");
display_init("SqueezeESP32");
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);