Applications: add stack_size to keypad_test and assert in furi thread (#620)

This commit is contained in:
あく
2021-08-02 18:32:15 +03:00
committed by GitHub
parent 93caf84c80
commit bf6c9fe114
2 changed files with 3 additions and 2 deletions

View File

@@ -115,6 +115,7 @@ bool furi_thread_start(FuriThread* thread) {
furi_assert(thread);
furi_assert(thread->callback);
furi_assert(thread->state == FuriThreadStateStopped);
furi_assert(thread->attr.stack_size > 0);
furi_thread_set_state(thread, FuriThreadStateStarting);
thread->id = osThreadNew(furi_thread_body, thread, &thread->attr);
if(thread->id) {