full i2s fix & loudness limited log

This commit is contained in:
philippe44
2023-09-04 16:06:49 -07:00
parent 0b077b5234
commit 926c567345
5 changed files with 32 additions and 19 deletions

View File

@@ -163,15 +163,11 @@ static bool cmd_handler(cspot_event_t event, ...) {
*/
static void cspot_sink_start(nm_state_t state_id, int sub_state) {
const char *hostname;
uint8_t mac[6];
cmd_handler_chain = cspot_cbs.cmd;
network_get_hostname(&hostname);
esp_netif_get_mac(network_get_active_interface(), mac);
for (int i = 0; i < 6; i++) sprintf(deviceId + 2*i, "%02x", mac[i]);
ESP_LOGI(TAG, "Starting Spotify (CSpot) servicename %s with id %s", hostname, deviceId);
ESP_LOGI(TAG, "starting Spotify on host %s", hostname);
int port;
httpd_handle_t server = http_get_server(&port);