mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 20:47:08 +03:00
proper handling of target config between NVS and dedicated - release
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user