From 14f00fe688a3586af6e5598b1b512698003e8920 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Br=C3=A1zio?= Date: Sun, 14 Dec 2025 01:12:38 +0000 Subject: [PATCH] Update advertisement condition to include NO_BOOT_ADVERT check --- examples/simple_repeater/main.cpp | 2 +- examples/simple_room_server/main.cpp | 2 +- examples/simple_sensor/main.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/simple_repeater/main.cpp b/examples/simple_repeater/main.cpp index 2712376e..7132d9a6 100644 --- a/examples/simple_repeater/main.cpp +++ b/examples/simple_repeater/main.cpp @@ -80,7 +80,7 @@ void setup() { ui_task.begin(the_mesh.getNodePrefs(), FIRMWARE_BUILD_DATE, FIRMWARE_VERSION); #endif -#if !defined(STEALTH_MODE) +#if !defined(STEALTH_MODE) && !defined(NO_BOOT_ADVERT) // send out initial Zero Hop Advertisement to the mesh the_mesh.sendSelfAdvertisement(16000, false); #endif diff --git a/examples/simple_room_server/main.cpp b/examples/simple_room_server/main.cpp index 257d1d09..70af5dbe 100644 --- a/examples/simple_room_server/main.cpp +++ b/examples/simple_room_server/main.cpp @@ -76,7 +76,7 @@ void setup() { ui_task.begin(the_mesh.getNodePrefs(), FIRMWARE_BUILD_DATE, FIRMWARE_VERSION); #endif -#if !defined(STEALTH_MODE) +#if !defined(STEALTH_MODE) && !defined(NO_BOOT_ADVERT) // send out initial Zero Hop Advertisement to the mesh the_mesh.sendSelfAdvertisement(16000, false); #endif diff --git a/examples/simple_sensor/main.cpp b/examples/simple_sensor/main.cpp index 08b2d57b..76a16166 100644 --- a/examples/simple_sensor/main.cpp +++ b/examples/simple_sensor/main.cpp @@ -110,7 +110,7 @@ void setup() { ui_task.begin(the_mesh.getNodePrefs(), FIRMWARE_BUILD_DATE, FIRMWARE_VERSION); #endif -#if !defined(STEALTH_MODE) +#if !defined(STEALTH_MODE) && !defined(NO_BOOT_ADVERT) // send out initial Zero Hop Advertisement to the mesh the_mesh.sendSelfAdvertisement(16000, false); #endif