aboutsummaryrefslogtreecommitdiffstats
path: root/os/various/tribuf.c
diff options
context:
space:
mode:
authorTexZK <texzk@email.it>2015-07-07 23:53:21 +0200
committerTexZK <texzk@email.it>2015-07-07 23:53:21 +0200
commit3f88eaa27a9ac41a294c5cf6c2de27c47ced9ad0 (patch)
tree95948926588d7ccf908c82b48540eca713fcaf52 /os/various/tribuf.c
parent3ac6c611847f1f20a89315d6d66bc138145ad62d (diff)
downloadChibiOS-Contrib-3f88eaa27a9ac41a294c5cf6c2de27c47ced9ad0.tar.gz
ChibiOS-Contrib-3f88eaa27a9ac41a294c5cf6c2de27c47ced9ad0.tar.bz2
ChibiOS-Contrib-3f88eaa27a9ac41a294c5cf6c2de27c47ced9ad0.zip
Added shell commands to control triple buffer demo
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();
}