AP_HAL_SITL: correct nullptr check on simulated mavlink rangefinder
Obvious copy/paste error
This commit is contained in:
parent
2f56ac45ab
commit
cf9bbb570c
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user