AP_BattMonitor: Fixes the setting of a default parameter for battery instance #2 set in hwdef

This commit is contained in:
James O'Shannessy 2023-04-27 16:56:22 +10:00 committed by Peter Barker
parent fcb622c610
commit 0dedc4bf74
1 changed files with 1 additions and 1 deletions

View File

@ -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