Add persistent T-Beam charge voltage controls and report Mesh Solar limits
This commit is contained in:
1 parent
3177ccfafa
commit
613d9d7c43
15 files changed
+1275
-9
No files matched your search
@@ -1,4 +1,5 @@
|
||||
#include <helpers/ui/DisplayPowerSettings.h>
|
||||
#include <helpers/BatteryChargeCLI.h>
|
||||
#include <helpers/ui/StartupScreen.h>
|
||||
#include "NotificationSettingsFile.h"
|
||||
#include "MyMesh.h"
|
||||
@@ -9854,6 +9855,9 @@ bool MyMesh::handleCommand(const char* command, uint32_t sender_timestamp,
|
||||
return true;
|
||||
}
|
||||
|
||||
if (mesh::power::handleBatteryChargeCommand(board, command, reply,
|
||||
reply_capacity)) return true;
|
||||
|
||||
// Hook for future variant-specific commands not covered by the shared,
|
||||
// runtime-aware FEM handlers above.
|
||||
if (board.handleCommand(command, sender_timestamp, reply)) {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include <helpers/RadioProfileCLI.h>
|
||||
#include <helpers/BatteryChargeCLI.h>
|
||||
#include <Arduino.h> // needed for PlatformIO
|
||||
#include <Mesh.h>
|
||||
#if MESH_PACKET_LOGGING
|
||||
@@ -468,6 +469,12 @@ public:
|
||||
}
|
||||
|
||||
void handleCommand(const char* command) {
|
||||
char charge_reply[160];
|
||||
if (mesh::power::handleBatteryChargeCommand(board, command, charge_reply,
|
||||
sizeof(charge_reply))) {
|
||||
Serial.println(charge_reply);
|
||||
return;
|
||||
}
|
||||
#if defined(NRF52_POWER_MANAGEMENT)
|
||||
char voltage_reply[160];
|
||||
if (mesh::power::handleVoltagePolicyCommand(command, voltage_reply,
|
||||
|
||||
Reference in new issue
Block a user