forked from Archive/PX4-Autopilot
Fix erroneous use of px4_close
* Close handle opened with `open` with `close` as indicated by @bkueng
This commit is contained in:
parent
40dff737c5
commit
73ef772537
|
@ -158,7 +158,7 @@ test_mount(int argc, char *argv[])
|
|||
}
|
||||
|
||||
if (it_left_abort == 0) {
|
||||
px4_close(cmd_fd);
|
||||
close(cmd_fd);
|
||||
(void)unlink(cmd_filename);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue