fix sem error for linux

This commit is contained in:
tumbili
2015-12-01 16:51:38 +01:00
parent 33f85a5024
commit f91af2221f
2 changed files with 6 additions and 5 deletions
+3
View File
@@ -301,6 +301,9 @@ extern "C" {
// Execute a blocking wait for that time in the future
errno = 0;
ret = px4_sem_timedwait(&sem, &ts);
#ifndef __PX4_DARWIN
ret = errno;
#endif
// Ensure ret is negative on failure
if (ret > 0) {