HAL_SITL: honor SIM_GPS2_ENABLE option

This commit is contained in:
Andrew Tridgell 2014-03-03 07:07:29 +11:00
parent 7a52938f68
commit af2f72acb0

View File

@ -111,7 +111,9 @@ void SITL_State::_gps_write(const uint8_t *p, uint16_t size)
}
}
write(gps_state.gps_fd, p, 1);
if (_sitl->gps2_enable) {
write(gps2_state.gps_fd, p, 1);
}
p++;
}
}