AP_BattMonitor: fixed build warnings

This commit is contained in:
Andrew Tridgell 2018-10-12 10:44:00 +11:00
parent b1928d959b
commit 9e17275488

View File

@ -143,7 +143,7 @@ AP_BattMonitor::BatteryFailsafe AP_BattMonitor_Backend::update_failsafes(void)
return AP_BattMonitor::BatteryFailsafe_None;
}
bool update_check(size_t buflen, char *buffer, bool failed, const char *message)
static bool update_check(size_t buflen, char *buffer, bool failed, const char *message)
{
if (failed) {
strncpy(buffer, message, buflen);