Fixed bug #696.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/stable_16.1.x@8799 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
8136a4098a
commit
8d575751b0
|
@ -104,7 +104,7 @@ u32_t sys_arch_sem_wait(sys_sem_t *sem, u32_t timeout) {
|
||||||
|
|
||||||
osalSysLock();
|
osalSysLock();
|
||||||
tmo = timeout > 0 ? MS2ST((systime_t)timeout) : TIME_INFINITE;
|
tmo = timeout > 0 ? MS2ST((systime_t)timeout) : TIME_INFINITE;
|
||||||
time = (u32_t)osalOsGetSystemTimeX();
|
time = (u32_t)ST2MS(osalOsGetSystemTimeX());
|
||||||
if (chSemWaitTimeoutS(*sem, tmo) != MSG_OK)
|
if (chSemWaitTimeoutS(*sem, tmo) != MSG_OK)
|
||||||
time = SYS_ARCH_TIMEOUT;
|
time = SYS_ARCH_TIMEOUT;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue