24 lines
484 B
C++
24 lines
484 B
C++
#pragma once
|
|
|
|
#include "AP_BattMonitor_SMBus.h"
|
|
|
|
#if AP_BATTERY_SMBUS_SOLO_ENABLED
|
|
|
|
class AP_BattMonitor_SMBus_Solo : public AP_BattMonitor_SMBus
|
|
{
|
|
public:
|
|
|
|
// Constructor
|
|
AP_BattMonitor_SMBus_Solo(AP_BattMonitor &mon,
|
|
AP_BattMonitor::BattMonitor_State &mon_state,
|
|
AP_BattMonitor_Params ¶ms);
|
|
|
|
private:
|
|
|
|
void timer(void) override;
|
|
|
|
uint8_t _button_press_count;
|
|
};
|
|
|
|
#endif // AP_BATTERY_SMBUS_SOLO_ENABLED
|