AP_RSSI: allow more libraries to compile with no HAL_GCS_ENABLED

This commit is contained in:
Peter Barker 2023-09-02 15:21:35 +10:00 committed by Peter Barker
parent a8d11db490
commit 4384f53dce
1 changed files with 4 additions and 0 deletions

View File

@ -225,7 +225,11 @@ float AP_RSSI::read_pwm_pin_rssi()
float AP_RSSI::read_telemetry_radio_rssi()
{
#if HAL_GCS_ENABLED
return GCS_MAVLINK::telemetry_radio_rssi();
#else
return 0;
#endif
}
// Scale and constrain a float rssi value to 0.0 to 1.0 range