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.