From 0dedc4bf747106a73b680bf5ae1607b83507b4e1 Mon Sep 17 00:00:00 2001 From: James O'Shannessy <12959316+joshanne@users.noreply.github.com> Date: Thu, 27 Apr 2023 16:56:22 +1000 Subject: [PATCH] AP_BattMonitor: Fixes the setting of a default parameter for battery instance #2 set in hwdef --- libraries/AP_BattMonitor/AP_BattMonitor_Analog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_BattMonitor/AP_BattMonitor_Analog.cpp b/libraries/AP_BattMonitor/AP_BattMonitor_Analog.cpp index 1b0dbf9c48..7c65c84fa6 100644 --- a/libraries/AP_BattMonitor/AP_BattMonitor_Analog.cpp +++ b/libraries/AP_BattMonitor/AP_BattMonitor_Analog.cpp @@ -81,7 +81,7 @@ AP_BattMonitor_Analog::AP_BattMonitor_Analog(AP_BattMonitor &mon, _volt_multiplier.set_default(HAL_BATT2_VOLT_SCALE); #endif #ifdef HAL_BATT2_CURR_SCALE - _curr_amp_per_volt.set_default(HAL_BATT2_VOLT_SCALE); + _curr_amp_per_volt.set_default(HAL_BATT2_CURR_SCALE); #endif } #endif