Files
meshcore-bot-firmware/patches/meshcore/0011-Auto-advert-on-startup-initial-flood-at-5s-instead-o.patch
cj-vana 5f35af7854 forge: add patch 12 — spell out hops/byte, drop channel name in test ack
Test response now reads:
  @[user] | 2 hops, 2-byte hashes, SNR -1.25 | recv 21:25:45
(was: @[user] #bot | 2h@2B SNR -1.25 | recv 21:25:45)

Path response now reads:
  Path @[user] 6 hops, 2-byte hashes, SNR -8.50 | <path>
(was: Path @[user] 6h@2B SNR -8.50 | <path>)

DM responses keep 'direct' indicator. Trace and other commands
unchanged for now. Tests updated for the new strings.

Submodule pointer stays at upstream 910b1bee so CI submodule clone
succeeds; apply-patches.sh applies the queue at build time.
2026-05-16 21:32:19 -06:00

28 lines
1.3 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: cj-vana <cj@depth23.online>
Date: Sat, 16 May 2026 20:49:51 -0600
Subject: [PATCH 11/12] Auto-advert on startup (initial flood at 5s instead of
120s)
BOT_PREFS_INITIAL_FLOOD_ADVERT_MILLIS 120000 -> 5000. The bot now sends
its first flood advert ~5 seconds after boot, so the whole mesh learns
the bot is up almost immediately. Subsequent flood adverts still
default to once every 24h via BOT_PREFS_DEFAULT_FLOOD_ADVERT_MILLIS.
---
examples/companion_radio/BotTypes.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/examples/companion_radio/BotTypes.h b/examples/companion_radio/BotTypes.h
index ee3f8984..08fe8bc7 100644
--- a/examples/companion_radio/BotTypes.h
+++ b/examples/companion_radio/BotTypes.h
@@ -41,7 +41,7 @@
#define BOT_PREFS_DEFAULT_LOCAL_ADVERT_MILLIS (24UL * 60UL * 60UL * 1000UL)
#define BOT_PREFS_DEFAULT_FLOOD_ADVERT_MILLIS (24UL * 60UL * 60UL * 1000UL)
#define BOT_PREFS_INITIAL_LOCAL_ADVERT_MILLIS 60000UL
-#define BOT_PREFS_INITIAL_FLOOD_ADVERT_MILLIS 120000UL
+#define BOT_PREFS_INITIAL_FLOOD_ADVERT_MILLIS 5000UL
#define BOT_PREFS_MAX_DELAY_MILLIS 60000U
#define BOT_PREFS_MAX_ADVERT_MILLIS (7UL * 24UL * 60UL * 60UL * 1000UL)
#define BOT_PREFS_SERIALIZED_SIZE 296