Fixed wrong condition in sbIsThreadRunningX().

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15355 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2022-01-13 14:49:25 +00:00
parent 6047661c76
commit 277d9540a3
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ bool sbIsThreadRunningX(sb_class_t *sbcp) {
return false;
}
return chThdTerminatedX(sbcp->tp);
return !chThdTerminatedX(sbcp->tp);
}
#if (CH_CFG_USE_WAITEXIT == TRUE) || defined(__DOXYGEN__)