mirror of https://github.com/ArduPilot/ardupilot
SITL: SIM_Vicon: fix compiler warning
This commit is contained in:
parent
cbd2756467
commit
994e3e7092
|
@ -29,7 +29,9 @@ using namespace SITL;
|
|||
Vicon::Vicon()
|
||||
{
|
||||
int tmp[2];
|
||||
pipe(tmp);
|
||||
if (pipe(tmp) == -1) {
|
||||
AP_HAL::panic("pipe() failed");
|
||||
}
|
||||
fd_my_end = tmp[1];
|
||||
fd_their_end = tmp[0];
|
||||
|
||||
|
|
Loading…
Reference in New Issue