From 277d9540a370217a02a3c7cafdc7a54bf24e496f Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Thu, 13 Jan 2022 14:49:25 +0000 Subject: [PATCH] Fixed wrong condition in sbIsThreadRunningX(). git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15355 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- os/sb/host/sbhost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/sb/host/sbhost.c b/os/sb/host/sbhost.c index d85c3e0e1..235315ec1 100644 --- a/os/sb/host/sbhost.c +++ b/os/sb/host/sbhost.c @@ -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__)