From ea27d40cf6a60a57a0b52fb11ea24203185b3489 Mon Sep 17 00:00:00 2001 From: Tom Pittenger Date: Tue, 6 Sep 2022 11:36:14 -0700 Subject: [PATCH] Sub: use new function from TempSensor refactor --- ArduSub/GCS_Mavlink.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduSub/GCS_Mavlink.cpp b/ArduSub/GCS_Mavlink.cpp index 7468f73eae..c2e758df4a 100644 --- a/ArduSub/GCS_Mavlink.cpp +++ b/ArduSub/GCS_Mavlink.cpp @@ -98,7 +98,7 @@ void GCS_MAVLINK_Sub::send_scaled_pressure3() { #if AP_TEMPERATURE_SENSOR_ENABLED float temperature; - if (!sub.temperature_sensor.temperature(temperature)) { + if (!sub.temperature_sensor.get_temperature(temperature)) { return; } mavlink_msg_scaled_pressure3_send(