Skip to content

Commit

Permalink
AP_BattMonitor: move defines around battery types for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker authored and tridge committed Apr 13, 2023
1 parent 8c326bc commit 795bb19
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions libraries/AP_BattMonitor/AP_BattMonitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,21 +305,21 @@ AP_BattMonitor::init()
drivers[instance] = new AP_BattMonitor_SMBus_NeoDesign(*this, state[instance], _params[instance]);
break;
#endif
case Type::BEBOP:
#if AP_BATTERY_BEBOP_ENABLED
case Type::BEBOP:
drivers[instance] = new AP_BattMonitor_Bebop(*this, state[instance], _params[instance]);
#endif
break;
case Type::UAVCAN_BatteryInfo:
#endif
#if AP_BATTERY_UAVCAN_BATTERYINFO_ENABLED
case Type::UAVCAN_BatteryInfo:
drivers[instance] = new AP_BattMonitor_DroneCAN(*this, state[instance], AP_BattMonitor_DroneCAN::UAVCAN_BATTERY_INFO, _params[instance]);
#endif
break;
case Type::BLHeliESC:
#endif
#if AP_BATTERY_ESC_ENABLED
case Type::BLHeliESC:
drivers[instance] = new AP_BattMonitor_ESC(*this, state[instance], _params[instance]);
#endif
break;
#endif
#if AP_BATTERY_SUM_ENABLED
case Type::Sum:
drivers[instance] = new AP_BattMonitor_Sum(*this, state[instance], _params[instance], instance);
Expand Down

0 comments on commit 795bb19

Please sign in to comment.