Fix: Empty every queue before unlock mutex.
authorRomain Forlot <romain.forlot@iot.bzh>
Thu, 30 Mar 2017 08:22:14 +0000 (10:22 +0200)
committerRomain Forlot <romain.forlot@iot.bzh>
Tue, 11 Apr 2017 10:41:42 +0000 (12:41 +0200)
commit3b731757c05be4df22b9659a19912297be8d1804
tree445d3a7cf0b36ce1819a3b4ba5938188c828100c
parent8472b6be89f579eb5f9d52a90250df0e8ac4acde
Fix: Empty every queue before unlock mutex.

Make sure that we finish to process every message in queue before refill them
cause' CAN read run faster than decoding and pushing event. So it's a try to get
all message processed.

Change-Id: Idce2bc4d79920adc2bf478177c4e3defed39867b
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
src/can/can-bus.cpp