cspot conditional

This commit is contained in:
Philippe G
2022-01-02 15:17:52 -08:00
parent 6dbefa5a76
commit 59cc5a5a70

View File

@@ -436,14 +436,11 @@ void register_external(void) {
if ((p = config_alloc_get(NVS_TYPE_STR, "enable_cspot")) != NULL) {
enable_cspot = strcmp(p,"1") == 0 || strcasecmp(p,"y") == 0;
free(p);
}
#endif
#if CONFIG_CSPOT_SINK
if (enable_cspot){
cspot_sink_init(cspot_cmd_handler, sink_data_handler);
LOG_INFO("Initializing CSpot sink");
}
}
#endif
}