Add hardware and role guards for fleet OTA commands

This commit is contained in:
mikecarper committed 2026-11-02 13:39:46 -08:00
1 parent e13f2af27d
commit 236d12610c
20 files changed
+640 -4

No files matched your search

+8
View File
@@ -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