mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_RSSI: allow more libraries to compile with no HAL_GCS_ENABLED
This commit is contained in:
parent
a8d11db490
commit
4384f53dce
@ -225,7 +225,11 @@ float AP_RSSI::read_pwm_pin_rssi()
|
|||||||
|
|
||||||
float AP_RSSI::read_telemetry_radio_rssi()
|
float AP_RSSI::read_telemetry_radio_rssi()
|
||||||
{
|
{
|
||||||
|
#if HAL_GCS_ENABLED
|
||||||
return GCS_MAVLINK::telemetry_radio_rssi();
|
return GCS_MAVLINK::telemetry_radio_rssi();
|
||||||
|
#else
|
||||||
|
return 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scale and constrain a float rssi value to 0.0 to 1.0 range
|
// Scale and constrain a float rssi value to 0.0 to 1.0 range
|
||||||
|
Loading…
Reference in New Issue
Block a user