aboutsummaryrefslogtreecommitdiffstats
path: root/os/various/tribuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/various/tribuf.c')
-rw-r--r--os/various/tribuf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/os/various/tribuf.c b/os/various/tribuf.c
index 689f583..80eb258 100644
--- a/os/various/tribuf.c
+++ b/os/various/tribuf.c
@@ -205,7 +205,9 @@ void tribufSwapBack(tribuf_t *handler) {
osalSysLock();
tribufSwapBackI(handler);
- chSchRescheduleS();
+#if (TRIBUF_USE_WAIT == TRUE)
+ osalOsRescheduleS();
+#endif
osalSysUnlock();
}