From d7ccb4d57796e90f3963cf21d209e971f4df3d14 Mon Sep 17 00:00:00 2001 From: mesher-de <250407498+mesher-de@users.noreply.github.com> Date: Mon, 16 Feb 2026 17:35:56 +0100 Subject: [PATCH] default to zerohop advert in CLI --- src/helpers/CommonCLI.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/helpers/CommonCLI.cpp b/src/helpers/CommonCLI.cpp index 6dcf7018e..8519fdc4e 100644 --- a/src/helpers/CommonCLI.cpp +++ b/src/helpers/CommonCLI.cpp @@ -200,10 +200,13 @@ void CommonCLI::handleCommand(uint32_t sender_timestamp, const char* command, ch // Reset clock getRTCClock()->setCurrentTime(1715770351); // 15 May 2024, 8:50pm _board->reboot(); // doesn't return - } else if (memcmp(command, "advert", 6) == 0) { + } else if (memcmp(command, "advert.flood", 12) == 0 && (command[12] == 0 || command[12] == ' ')) { // send flood advert _callbacks->sendSelfAdvertisement(1500, true); // longer delay, give CLI response time to be sent first - strcpy(reply, "OK - Advert sent"); + strcpy(reply, "OK - Flood advert sent"); + } else if (memcmp(command, "advert", 6) == 0 && (command[6] == 0 || command[6] == ' ')) { + _callbacks->sendSelfAdvertisement(1500, false); // longer delay, give CLI response time to be sent first + strcpy(reply, "OK - zerohop advert sent"); } else if (memcmp(command, "clock sync", 10) == 0) { uint32_t curr = getRTCClock()->getCurrentTime(); if (sender_timestamp > curr) {