aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--os/kernel/include/chvt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/kernel/include/chvt.h b/os/kernel/include/chvt.h
index 27baea6a4..c677689af 100644
--- a/os/kernel/include/chvt.h
+++ b/os/kernel/include/chvt.h
@@ -44,7 +44,7 @@
* @api
*/
#define S2ST(sec) \
- ((systime_t)(((uint32_t)(sec)) * ((uint32_t)CH_FREQUENCY)))
+ ((systime_t)((sec) * CH_FREQUENCY))
/**
* @brief Milliseconds to system ticks.