mirror of
https://github.com/mikecarper/MeshCore.git
synced 2026-11-05 13:47:20 +00:00
Add hardware and role guards for fleet OTA commands
This commit is contained in:
1 parent
e13f2af27d
commit
236d12610c
20 files changed
+640
-4
No files matched your search
@@ -1,4 +1,5 @@
|
||||
#include "SensorMesh.h"
|
||||
#include <helpers/HardwareCommand.h>
|
||||
#include <helpers/ui/DisplayNightLocation.h>
|
||||
#if defined(USE_LR2021)
|
||||
#include <helpers/radiolib/LR2021SideDetectorConfig.h>
|
||||
@@ -761,6 +762,13 @@ void SensorMesh::handleCommand(uint32_t sender_timestamp, char* command, char* r
|
||||
command += 3;
|
||||
}
|
||||
|
||||
#if MESH_ENABLE_FLEET_CONTROL
|
||||
const char* hardware_command = command;
|
||||
if (mesh::hardwareCommand::apply(hardware_command,
|
||||
mesh::hardwareCommand::hardware(_cli.getBoard()->getManufacturerName()),
|
||||
FIRMWARE_ROLE, reply, 157)) return;
|
||||
command += hardware_command - command;
|
||||
#endif
|
||||
mesh::cli::normalizeCommandVerb(command);
|
||||
|
||||
#if MESH_ENABLE_SENSOR_TRACKER
|
||||
|
||||
Reference in new issue
Block a user