mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-11-02 10:51:57 +00:00
Update MeshCore.h
This commit is contained in:
@@ -76,6 +76,14 @@ public:
|
|||||||
virtual bool isExternalPowered() { return false; }
|
virtual bool isExternalPowered() { return false; }
|
||||||
// True while a board can identify an active battery-charging source.
|
// True while a board can identify an active battery-charging source.
|
||||||
virtual bool isChargerActive() { return false; }
|
virtual bool isChargerActive() { return false; }
|
||||||
|
|
||||||
|
// Optional, source-specific power detection. Boards that can distinguish a USB
|
||||||
|
// supply from a solar charger override these; defaults keep every other board
|
||||||
|
// unaffected (the generic CLI prints "n/a" when a capability is absent).
|
||||||
|
virtual bool hasUsbPowerDetect() const { return false; }
|
||||||
|
virtual bool isUsbPowered() { return false; }
|
||||||
|
virtual bool hasSolarChargerDetect() const { return false; }
|
||||||
|
virtual bool isSolarChargerActive() { return false; }
|
||||||
virtual uint16_t getBootVoltage() { return 0; }
|
virtual uint16_t getBootVoltage() { return 0; }
|
||||||
virtual uint32_t getResetReason() const { return 0; }
|
virtual uint32_t getResetReason() const { return 0; }
|
||||||
virtual const char* getResetReasonString(uint32_t reason) { return "Not available"; }
|
virtual const char* getResetReasonString(uint32_t reason) { return "Not available"; }
|
||||||
|
|||||||
Reference in New Issue
Block a user