AP_BattMonitor: convert APM_BUILD_COPTER_OR_HELI() to APM_BUILD_COPTER_OR_HELI

This commit is contained in:
Andy Piper 2021-10-25 18:10:11 +01:00 committed by Andrew Tridgell
parent 0d9b677586
commit 70b02aeadf
2 changed files with 3 additions and 3 deletions

View File

@ -449,7 +449,7 @@ void AP_BattMonitor::convert_params(void) {
#if APM_BUILD_TYPE(APM_BUILD_ArduPlane)
info.old_key = 166;
#elif APM_BUILD_COPTER_OR_HELI()
#elif APM_BUILD_COPTER_OR_HELI
info.old_key = 36;
#elif APM_BUILD_TYPE(APM_BUILD_ArduSub)
info.old_key = 33;

View File

@ -3,11 +3,11 @@
#include "AP_BattMonitor_Params.h"
#include "AP_BattMonitor.h"
#if APM_BUILD_COPTER_OR_HELI()
#if APM_BUILD_COPTER_OR_HELI
#define DEFAULT_LOW_BATTERY_VOLTAGE 10.5f
#else
#define DEFAULT_LOW_BATTERY_VOLTAGE 0.0f
#endif // APM_BUILD_COPTER_OR_HELI()
#endif // APM_BUILD_COPTER_OR_HELI
const AP_Param::GroupInfo AP_BattMonitor_Params::var_info[] = {
// @Param: MONITOR