AP_DroneCAN: fixed sim on hw build

tested using:

Tools/scripts/sitl-on-hardware/sitl-on-hw.py --board Pixhawk6C --vehicle plane --simclass Plane --frame plane
This commit is contained in:
Andrew Tridgell 2023-10-12 12:22:54 +11:00 committed by Peter Barker
parent 0f1e766269
commit 3ba12d16db
1 changed files with 1 additions and 1 deletions

View File

@ -391,7 +391,7 @@ void AP_DroneCAN::loop(void)
send_node_status();
_dna_server.verify_nodes();
#if AP_DRONECAN_SEND_GPS
#if AP_DRONECAN_SEND_GPS && AP_GPS_DRONECAN_ENABLED
if (option_is_set(AP_DroneCAN::Options::SEND_GNSS) && !AP_GPS_DroneCAN::instance_exists(this)) {
// send if enabled and this interface/driver is not used by the AP_GPS driver
gnss_send_fix();