From 64bab937d229913472f7816e8dd61bfb09b796ab Mon Sep 17 00:00:00 2001 From: Jono453 Date: Fri, 11 Aug 2023 00:10:03 -0700 Subject: [PATCH] OV3-916: BattMonitor AP_Periph fix to 1Hz --- Tools/AP_Periph/AP_Periph.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/AP_Periph/AP_Periph.cpp b/Tools/AP_Periph/AP_Periph.cpp index 14fe5e9e7f..f262ef08c8 100644 --- a/Tools/AP_Periph/AP_Periph.cpp +++ b/Tools/AP_Periph/AP_Periph.cpp @@ -421,8 +421,8 @@ void AP_Periph_FW::update() #endif #ifdef HAL_PERIPH_ENABLE_BATTERY - if (now - battery.last_read_ms >= 100) { - // update battery at 10Hz + if (now - battery.last_read_ms >= 1000) { + // update battery at 1Hz battery.last_read_ms = now; battery.lib.read(); }