Files
meshcore-bot-firmware/patches/meshcore/0003-Allow-prefixless-firmware-bot-DMs.patch
cj-vana 16846a354c forge: add patch 11 — auto-advert at 5s after boot
Shortens BOT_PREFS_INITIAL_FLOOD_ADVERT_MILLIS from 120000 to 5000 so
the bot announces itself to the whole mesh ~5s after boot instead of
2 minutes after boot. Recurring flood interval still 24h (upstream
default); ask if you want that tightened.
2026-05-16 20:49:59 -06:00

23 lines
800 B
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: cj-vana <cj@depth23.online>
Date: Fri, 15 May 2026 20:09:58 -0600
Subject: [PATCH 03/11] Allow prefixless firmware bot DMs
---
examples/companion_radio/BotPolicy.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/examples/companion_radio/BotPolicy.cpp b/examples/companion_radio/BotPolicy.cpp
index 33de45f8..7d0e6029 100644
--- a/examples/companion_radio/BotPolicy.cpp
+++ b/examples/companion_radio/BotPolicy.cpp
@@ -75,7 +75,7 @@ bool isEmergency(BotChannelKind kind) {
}
bool isPrefixlessCommandAllowed(BotChannelKind kind) {
- return kind == BOT_CHANNEL_BOT || kind == BOT_CHANNEL_TESTING;
+ return kind == BOT_CHANNEL_DM || kind == BOT_CHANNEL_BOT || kind == BOT_CHANNEL_TESTING;
}
}