posix cdev_platform: set errno on px4_open failure

This commit is contained in:
Beat Küng
2020-01-22 12:07:51 -05:00
committed by Daniel Agar
parent 21a8d7db7f
commit 67f3234b5b
+1
View File
@@ -201,6 +201,7 @@ extern "C" {
}
if (ret < 0) {
errno = -ret;
return -1;
}