AP_GPS: move from HAL_NO_GCS to HAL_GCS_ENABLED

This commit is contained in:
Peter Barker 2021-08-18 21:42:16 +10:00 committed by Peter Barker
parent df9de582e4
commit 6d615a3e16
2 changed files with 2 additions and 1 deletions

View File

@ -21,6 +21,7 @@
#include "AP_GPS.h"
#include "AP_GPS_SBF.h"
#include <GCS_MAVLink/GCS.h>
#include <AP_InternalError/AP_InternalError.h>
#include <stdio.h>
#include <ctype.h>

View File

@ -175,7 +175,7 @@ bool AP_GPS_Backend::should_log() const
void AP_GPS_Backend::send_mavlink_gps_rtk(mavlink_channel_t chan)
{
#ifndef HAL_NO_GCS
#if HAL_GCS_ENABLED
const uint8_t instance = state.instance;
// send status
switch (instance) {