mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-20 15:48:29 -04:00
HAL_SITL: honor SIM_GPS2_ENABLE option
This commit is contained in:
parent
7a52938f68
commit
af2f72acb0
@ -111,7 +111,9 @@ void SITL_State::_gps_write(const uint8_t *p, uint16_t size)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
write(gps_state.gps_fd, p, 1);
|
write(gps_state.gps_fd, p, 1);
|
||||||
|
if (_sitl->gps2_enable) {
|
||||||
write(gps2_state.gps_fd, p, 1);
|
write(gps2_state.gps_fd, p, 1);
|
||||||
|
}
|
||||||
p++;
|
p++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user