events - Fixed overflow of timeout on STM32F4
For equeue_sema_wait, -1 is used to indicate an infinite wait.
This wasn't handled in the nonrtos implementation and caused
undefined/weird behaviour after an overflow on integer multiplication.

On most boards, the infinite wait would return after ~50 days, on the
STM32F4 the timeout killed all other timeouts for some reason.
ls
1 parent 4f9e9f6 commit f9752f957ef91abbeaa421da427f887ef4e94ff0
@Christopher Haster Christopher Haster authored on 9 Jan 2017
Showing 1 changed file
View
events/equeue/equeue_mbed.cpp