Add MediaMesh radio2 presets and automatic media routing

This commit is contained in:
mikecarper committed 2026-10-21 10:35:14 -07:00
1 parent 38f68596f7
commit 53c7bb141a
14 files changed
+358 -19

No files matched your search

+3 -1
View File
@@ -1,4 +1,5 @@
#include "FleetCommand.h"
#include "RadioProfilePresets.h"
#include <SHA256.h>
#include <math.h>
#include <string.h>
@@ -598,7 +599,8 @@ bool FleetCommand::commandAllowed(const char* command) {
: (get || del) && scheduleSelector(arguments, scheduled_secondary);
}
if (kind == CommandKind::Radio) {
return get ? !*arguments : set && radioTuple(arguments, key_length == 10);
return get ? !*arguments : set && ((key_length == 6
&& cli::radio2PresetTuple(arguments)) || radioTuple(arguments, key_length == 10));
}
if (kind == CommandKind::RadioStatus) return get && !*arguments;
if (kind == CommandKind::Cross) {