Skip to content

Commit

Permalink
OV3-916: BattMonitor AP_Periph fix to 1Hz
Browse files Browse the repository at this point in the history
  • Loading branch information
Jono453 committed Aug 11, 2023
1 parent b9fdde4 commit 64bab93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tools/AP_Periph/AP_Periph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 64bab93

Please sign in to comment.