diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-01-23 08:04:39 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-01-23 08:04:39 +0000 |
commit | bfc2d0e4bb2a4a3c9c8ae3b8c49d7a99080ec4ec (patch) | |
tree | ef3b64296e9a390fb85f034d80afa13cd64cd1b1 /os | |
parent | 2a444605ded34dba2f32ce62e47eae178e49babf (diff) | |
download | ChibiOS-bfc2d0e4bb2a4a3c9c8ae3b8c49d7a99080ec4ec.tar.gz ChibiOS-bfc2d0e4bb2a4a3c9c8ae3b8c49d7a99080ec4ec.tar.bz2 ChibiOS-bfc2d0e4bb2a4a3c9c8ae3b8c49d7a99080ec4ec.zip |
Fixed bug #696.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8795 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r-- | os/various/lwip_bindings/arch/sys_arch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/various/lwip_bindings/arch/sys_arch.c b/os/various/lwip_bindings/arch/sys_arch.c index e11d65c0e..6107de252 100644 --- a/os/various/lwip_bindings/arch/sys_arch.c +++ b/os/various/lwip_bindings/arch/sys_arch.c @@ -104,7 +104,7 @@ u32_t sys_arch_sem_wait(sys_sem_t *sem, u32_t timeout) { osalSysLock(); tmo = timeout > 0 ? MS2ST((systime_t)timeout) : TIME_INFINITE; - time = (u32_t)osalOsGetSystemTimeX();
+ time = (u32_t)ST2MS(osalOsGetSystemTimeX());
if (chSemWaitTimeoutS(*sem, tmo) != MSG_OK)
time = SYS_ARCH_TIMEOUT;
else
|