mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 09:28:58 +00:00
Don't add DriverFramework dir for NuttX
I am unable to get the nuttx build dependencies set up so that it builds the export dir before it builds df_driver_framework. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -197,7 +197,7 @@ static bool accelerometerCheck(int mavlink_fd, unsigned instance, bool optional,
|
||||
if (dynamic) {
|
||||
/* check measurement result range */
|
||||
struct accel_report acc;
|
||||
ret = px4_read(fd, &acc, sizeof(acc));
|
||||
ret = h.read(&acc, sizeof(acc));
|
||||
|
||||
if (ret == sizeof(acc)) {
|
||||
/* evaluate values */
|
||||
@@ -219,9 +219,7 @@ static bool accelerometerCheck(int mavlink_fd, unsigned instance, bool optional,
|
||||
#endif
|
||||
|
||||
out:
|
||||
#ifdef __PX4_NUTTX
|
||||
px4_close(fd);
|
||||
#endif
|
||||
DevMgr::releaseHandle(h);
|
||||
return success;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user