mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-07 03:57:07 +03:00
cspot conditional
This commit is contained in:
@@ -436,13 +436,10 @@ void register_external(void) {
|
|||||||
if ((p = config_alloc_get(NVS_TYPE_STR, "enable_cspot")) != NULL) {
|
if ((p = config_alloc_get(NVS_TYPE_STR, "enable_cspot")) != NULL) {
|
||||||
enable_cspot = strcmp(p,"1") == 0 || strcasecmp(p,"y") == 0;
|
enable_cspot = strcmp(p,"1") == 0 || strcasecmp(p,"y") == 0;
|
||||||
free(p);
|
free(p);
|
||||||
}
|
if (enable_cspot){
|
||||||
#endif
|
cspot_sink_init(cspot_cmd_handler, sink_data_handler);
|
||||||
|
LOG_INFO("Initializing CSpot sink");
|
||||||
#if CONFIG_CSPOT_SINK
|
}
|
||||||
if (enable_cspot){
|
|
||||||
cspot_sink_init(cspot_cmd_handler, sink_data_handler);
|
|
||||||
LOG_INFO("Initializing CSpot sink");
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user