AP_HAL_SITL: correct nullptr check on simulated mavlink rangefinder

Obvious copy/paste error
This commit is contained in:
Peter Barker 2021-10-22 12:17:04 +11:00 committed by Peter Barker
parent 2f56ac45ab
commit cf9bbb570c

View File

@ -303,7 +303,7 @@ int SITL_State::sim_fd(const char *name, const char *arg)
return nmea->fd();
} else if (streq(name, "rf_mavlink")) {
if (wasp != nullptr) {
if (rf_mavlink != nullptr) {
AP_HAL::panic("Only one rf_mavlink at a time");
}
rf_mavlink = new SITL::RF_MAVLink();