diff --git a/firmware/export/thread.h b/firmware/export/thread.h index f6795062d4..fe1612d2f4 100644 --- a/firmware/export/thread.h +++ b/firmware/export/thread.h @@ -21,7 +21,12 @@ #include +#if CONFIG_CODEC == SWCODEC #define MAXTHREADS 14 +#else +#define MAXTHREADS 9 +#endif + #define DEFAULT_STACK_SIZE 0x400 /* Bytes */ int create_thread(void (*function)(void), void* stack, int stack_size,