mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 19:03:33 +08:00
platform Updates for NuttX 9.1.0-
This commit is contained in:
committed by
Daniel Agar
parent
97c17d5d4a
commit
b32aab2d0f
@@ -78,9 +78,9 @@ int px4_platform_init(void)
|
||||
|
||||
(void)fs_dupfd2(0, 1);
|
||||
(void)fs_dupfd2(0, 2);
|
||||
(void)fs_fdopen(0, O_RDONLY, NULL);
|
||||
(void)fs_fdopen(1, O_WROK | O_CREAT, NULL);
|
||||
(void)fs_fdopen(2, O_WROK | O_CREAT, NULL);
|
||||
(void)fs_fdopen(0, O_RDONLY, NULL, NULL);
|
||||
(void)fs_fdopen(1, O_WROK | O_CREAT, NULL, NULL);
|
||||
(void)fs_fdopen(2, O_WROK | O_CREAT, NULL, NULL);
|
||||
|
||||
} else {
|
||||
/* We failed to open /dev/null OR for some reason, we opened
|
||||
|
||||
Reference in New Issue
Block a user