mirror of
https://github.com/ddv2005/AirsoftTracker.git
synced 2026-01-11 05:26:59 +00:00
Upgrade public source code to version 1.0.1332. New boards support
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
#pragma once
|
||||
#include "concurrency/PeriodicTask.h"
|
||||
#include "PowerStatus.h"
|
||||
#ifdef USE_XPOWERSLIB
|
||||
#include <XPowersLib.h>
|
||||
#endif
|
||||
|
||||
#define MIN_BAT_MILLIVOLTS 3250 // millivolts. 10% per https://blog.ampow.com/lipo-voltage-chart/
|
||||
|
||||
@@ -17,6 +20,10 @@ class Power : public concurrency::PeriodicTask
|
||||
protected:
|
||||
AXP20X_Class axp;
|
||||
#endif
|
||||
#ifdef USE_XPOWERSLIB
|
||||
XPowersLibInterface *m_power;
|
||||
bool m_pmuFound;
|
||||
#endif
|
||||
public:
|
||||
Observable<const PowerStatus *> newStatus;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user