Skip to content

Commit c23d51f

Browse files
wificonf: 12KB of stack size for child threads seems enough
1 parent a981150 commit c23d51f

File tree

1 file changed

+2
-0
lines changed
  • internal_filesystem/builtin/apps/com.example.wificonf/assets

1 file changed

+2
-0
lines changed

internal_filesystem/builtin/apps/com.example.wificonf/assets/wificonf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ def start_scan_networks():
9696
busy_scanning = True
9797
scan_button.remove_flag(lv.obj.FLAG.CLICKABLE)
9898
scan_button_label.set_text(scan_button_scanning_text)
99+
_thread.stack_size(12*1024)
99100
_thread.start_new_thread(scan_networks, ())
100101

101102

@@ -137,6 +138,7 @@ def start_attempt_connecting(ssid,password):
137138
print("Not attempting connect because busy_connecting.")
138139
else:
139140
busy_connecting = True
141+
_thread.stack_size(12*1024)
140142
_thread.start_new_thread(attempt_connecting, (ssid,password))
141143

142144
def show_error(message):

0 commit comments

Comments
 (0)