From 92aff3bdedafc83e9c60447b0c84d562429373ff Mon Sep 17 00:00:00 2001 From: Joshua Henderson Date: Mon, 3 Jan 2022 16:17:18 -0500 Subject: [PATCH] AP_Periph: use airspeed.set_log_bit() --- Tools/AP_Periph/AP_Periph.cpp | 1 + Tools/AP_Periph/can.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Tools/AP_Periph/AP_Periph.cpp b/Tools/AP_Periph/AP_Periph.cpp index c58d8f0505..de54e1b998 100644 --- a/Tools/AP_Periph/AP_Periph.cpp +++ b/Tools/AP_Periph/AP_Periph.cpp @@ -181,6 +181,7 @@ void AP_Periph_FW::init() #ifdef HAL_PERIPH_ENABLE_AIRSPEED if (airspeed.enabled()) { + // Note: logging of ARSPD is not enabled currently. To enable, call airspeed.set_log_bit(); airspeed.init(); } #endif diff --git a/Tools/AP_Periph/can.cpp b/Tools/AP_Periph/can.cpp index f0caa9b3d0..5e7f48ae7a 100644 --- a/Tools/AP_Periph/can.cpp +++ b/Tools/AP_Periph/can.cpp @@ -2138,7 +2138,7 @@ void AP_Periph_FW::can_airspeed_update(void) return; } last_airspeed_update_ms = now; - airspeed.update(false); + airspeed.update(); if (!airspeed.healthy()) { // don't send any data return;