aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt/include/chvt.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/rt/include/chvt.h')
-rw-r--r--os/rt/include/chvt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/rt/include/chvt.h b/os/rt/include/chvt.h
index e115bec63..2102df345 100644
--- a/os/rt/include/chvt.h
+++ b/os/rt/include/chvt.h
@@ -151,7 +151,7 @@ static inline systime_t chVTGetSystemTime(void) {
*/
static inline sysinterval_t chVTTimeElapsedSinceX(systime_t start) {
- return chTimeDiffX(chVTGetSystemTimeX(), start);
+ return chTimeDiffX(start, chVTGetSystemTimeX());
}
/**