AP_BattMonitor: fix missing method declaration compile failure

This commit is contained in:
Peter Barker 2023-05-19 19:01:59 +10:00 committed by Peter Barker
parent bce2625918
commit 2e1f8d8b8b
1 changed files with 2 additions and 2 deletions

View File

@ -2,12 +2,12 @@
#include <AP_BattMonitor/AP_BattMonitor_Backend.h>
float calculate_mah_with_double_cast(float amps, float dt)
static float calculate_mah_with_double_cast(float amps, float dt)
{
return (float) ((double) amps * (double) dt * (double) 0.0000002778f);
}
float calculate_mah(float amps, float dt)
static float calculate_mah(float amps, float dt)
{
return AP_BattMonitor_Backend::calculate_mah(amps, dt);
}