mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2026-01-31 06:40:58 +03:00
no EXTRAM attribute + cosmetics - release
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
idf_component_register(
|
idf_component_register(
|
||||||
INCLUDE_DIRS . ./inc inc/alac inc/FLAC inc/helix-aac inc/mad inc/ogg inc/opus inc/opusfile inc/resample16 inc/soxr inc/vorbis
|
INCLUDE_DIRS . ./inc inc/alac inc/FLAC inc/helix-aac inc/mad inc/ogg inc/opus inc/opusfile inc/resample16 inc/soxr inc/vorbis
|
||||||
)
|
)
|
||||||
|
|
||||||
if (DEFINED AAC_DISABLE_SBR)
|
if (DEFINED AAC_DISABLE_SBR)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
idf_component_register( SRC_DIRS .
|
idf_component_register( SRC_DIRS .
|
||||||
INCLUDE_DIRS .
|
INCLUDE_DIRS .
|
||||||
PRIV_REQUIRES tools newlib console esp_common freertos
|
PRIV_REQUIRES tools newlib console esp_common freertos
|
||||||
REQUIRES nvs_flash json
|
REQUIRES nvs_flash json
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -183,7 +183,7 @@ static bool raop_sink_start(raop_cmd_vcb_t cmd_cb, raop_data_cb_t data_cb) {
|
|||||||
ESP_ERROR_CHECK( mdns_hostname_set(hostname) );
|
ESP_ERROR_CHECK( mdns_hostname_set(hostname) );
|
||||||
|
|
||||||
char * sink_name_buffer= (char *)config_alloc_get(NVS_TYPE_STR,"airplay_name");
|
char * sink_name_buffer= (char *)config_alloc_get(NVS_TYPE_STR,"airplay_name");
|
||||||
if(sink_name_buffer != NULL){
|
if (sink_name_buffer != NULL){
|
||||||
memset(sink_name, 0x00, sizeof(sink_name));
|
memset(sink_name, 0x00, sizeof(sink_name));
|
||||||
strncpy(sink_name,sink_name_buffer,sizeof(sink_name)-1 );
|
strncpy(sink_name,sink_name_buffer,sizeof(sink_name)-1 );
|
||||||
free(sink_name_buffer);
|
free(sink_name_buffer);
|
||||||
@@ -218,7 +218,7 @@ void raop_sink_init(raop_cmd_vcb_t cmd_cb, raop_data_cb_t data_cb) {
|
|||||||
raop_cbs.data = data_cb;
|
raop_cbs.data = data_cb;
|
||||||
TimerHandle_t timer = xTimerCreate("raopStart", 5000 / portTICK_RATE_MS, pdTRUE, NULL, raop_start_handler);
|
TimerHandle_t timer = xTimerCreate("raopStart", 5000 / portTICK_RATE_MS, pdTRUE, NULL, raop_start_handler);
|
||||||
xTimerStart(timer, portMAX_DELAY);
|
xTimerStart(timer, portMAX_DELAY);
|
||||||
LOG_INFO( "delaying AirPlay start");
|
LOG_INFO( "Delaying AirPlay start");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -47,7 +47,8 @@ static EXT_RAM_ATTR struct button_s {
|
|||||||
TimerHandle_t timer;
|
TimerHandle_t timer;
|
||||||
} buttons[MAX_BUTTONS];
|
} buttons[MAX_BUTTONS];
|
||||||
|
|
||||||
static EXT_RAM_ATTR struct {
|
// can't use EXT_RAM_ATTR for initialized structure
|
||||||
|
static struct {
|
||||||
int gpio, level;
|
int gpio, level;
|
||||||
struct button_s *button;
|
struct button_s *button;
|
||||||
} polled_gpio[] = { {36, -1, NULL}, {39, -1, NULL}, {-1, -1, NULL} };
|
} polled_gpio[] = { {36, -1, NULL}, {39, -1, NULL}, {-1, -1, NULL} };
|
||||||
|
|||||||
Reference in New Issue
Block a user