Skip to content

Commit

Permalink
Temp fix for not enough mem to create async handling task in AsyncTCP.
Browse files Browse the repository at this point in the history
Lowered stack needed from 8192*2 to 8192.
  • Loading branch information
carlhampuswall committed Jan 4, 2025
1 parent 63bb62b commit e9c9d67
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion firmware/src/apps/spotify/spotify.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ void SpotifyApp::initScreen()

playing = lv_label_create(player_screen);
lv_obj_set_style_text_font(playing, &lv_font_montserrat_22, 0); // TODO Add own symbol font!!
lv_obj_set_style_text_color(playing, LV_COLOR_MAKE(0x60, 0x60, 0x60), LV_PART_MAIN);
lv_obj_set_style_text_color(playing, LV_COLOR_MAKE(0x99, 0x99, 0x99), LV_PART_MAIN);
lv_obj_set_style_opa(playing, LV_OPA_80, LV_PART_MAIN);
lv_label_set_text(playing, LV_SYMBOL_PLAY);
lv_obj_align(playing, LV_ALIGN_CENTER, 2, 0);
Expand Down
1 change: 1 addition & 0 deletions firmware/src/network/async_http.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ void AsyncHttp::get(const char *path, const char *content_type, ResponseCallback
{
if (client_->connect(host_, port_))
{
LOGV(LOG_LEVEL_DEBUG, "Connected to server %s:%d", host_, port_);
}
else
{
Expand Down
2 changes: 2 additions & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ build_flags =
-D LOGGING_CUSTOM_INIT_TITLE=MODEL
-D LOGGING_DELAY=1000

-D CONFIG_ASYNC_TCP_STACK_SIZE=8192

[env:seedlabs_devkit_inverted_display]
build_flags =
${env:seedlabs_devkit.build_flags}
Expand Down

0 comments on commit e9c9d67

Please sign in to comment.