File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -905,7 +905,7 @@ uint8_t osThreadGetState (osThreadId thread_id) {
905
905
if (__exceptional_mode ()) return osErrorISR ; // Not allowed in ISR
906
906
907
907
ptcb = rt_tid2ptcb (thread_id ); // Get TCB pointer
908
- if (ptcb == NULL ) return osErrorParameter ;
908
+ if (ptcb == NULL ) return INACTIVE ;
909
909
910
910
return ptcb -> state ;
911
911
}
Original file line number Diff line number Diff line change @@ -842,7 +842,7 @@ uint8_t osThreadGetState (osThreadId thread_id) {
842
842
if (__get_IPSR () != 0U ) return osErrorISR ; // Not allowed in ISR
843
843
844
844
ptcb = rt_tid2ptcb (thread_id ); // Get TCB pointer
845
- if (ptcb == NULL ) return osErrorParameter ;
845
+ if (ptcb == NULL ) return INACTIVE ;
846
846
847
847
return ptcb -> state ;
848
848
}
You can’t perform that action at this time.
0 commit comments