Skip to content

Commit bb64feb

Browse files
committed
fix(wifi): Used for critical crash fixes (allocation of the TCB to internal memory instead of PSRAM) and memory leak fixes (task cleanup)
1 parent e2512f9 commit bb64feb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

components/Service/wifi/wifi_service.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ void wifi_service_start_channel_hopping(void) {
100100
hopper_task_stack = (StackType_t *)heap_caps_malloc(HOPPER_STACK_SIZE * sizeof(StackType_t), MALLOC_CAP_SPIRAM);
101101
}
102102
if (hopper_task_tcb == NULL) {
103-
hopper_task_tcb = (StaticTask_t *)heap_caps_malloc(sizeof(StaticTask_t), MALLOC_CAP_SPIRAM);
103+
hopper_task_tcb = (StaticTask_t *)heap_caps_malloc(sizeof(StaticTask_t), MALLOC_CAP_INTERNAL | MALLOC_CAP_8BIT);
104104
}
105105

106106
if (hopper_task_stack == NULL || hopper_task_tcb == NULL) {

0 commit comments

Comments
 (0)