https://github.com/jdoe95/mrtos/blob/0ded6f16815ca11996a3a1504a271754e4b858ca/source/thread.c#L362 Lock nesting counter must be set every time os_sch_lock_int is called.
mrtos/source/thread.c
Line 362 in 0ded6f1
Lock nesting counter must be set every time os_sch_lock_int is called.