Posix: fixed calls to open that should be px4_open

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois
2015-04-21 23:26:14 -07:00
parent 02aaa403f1
commit 36a9f7a818
+2 -2
View File
@@ -1340,7 +1340,7 @@ Sensors::parameter_update_poll(bool forced)
res = ERROR;
(void)sprintf(str, "%s%u", GYRO_BASE_DEVICE_PATH, s);
int fd = open(str, 0);
int fd = px4_open(str, 0);
if (fd < 0) {
continue;
@@ -1407,7 +1407,7 @@ Sensors::parameter_update_poll(bool forced)
res = ERROR;
(void)sprintf(str, "%s%u", ACCEL_BASE_DEVICE_PATH, s);
int fd = open(str, 0);
int fd = px4_open(str, 0);
if (fd < 0) {
continue;