From e5dab6b9998f71cab6c8e74d4af6623ae0cde83d Mon Sep 17 00:00:00 2001 From: AtlavoxDev Date: Mon, 25 May 2026 09:50:28 -0400 Subject: [PATCH] Rename bootComplete() to onBootComplete() for naming consistency Matches the existing event-style lifecycle hooks on MainBoard (onBeforeTransmit, onAfterTransmit) per @liamcottle's review feedback. --- examples/companion_radio/main.cpp | 2 +- examples/kiss_modem/main.cpp | 2 +- examples/simple_repeater/main.cpp | 2 +- examples/simple_room_server/main.cpp | 2 +- src/MeshCore.h | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/companion_radio/main.cpp b/examples/companion_radio/main.cpp index 0eb6b11b..31923543 100644 --- a/examples/companion_radio/main.cpp +++ b/examples/companion_radio/main.cpp @@ -239,7 +239,7 @@ void setup() { ui_task.begin(disp, &sensors, the_mesh.getNodePrefs()); // still want to pass this in as dependency, as prefs might be moved #endif - board.bootComplete(); + board.onBootComplete(); } void loop() { diff --git a/examples/kiss_modem/main.cpp b/examples/kiss_modem/main.cpp index d3ba43b2..7fbcaed1 100644 --- a/examples/kiss_modem/main.cpp +++ b/examples/kiss_modem/main.cpp @@ -120,7 +120,7 @@ void setup() { modem->setGetStatsCallback(onGetStats); modem->begin(); - board.bootComplete(); + board.onBootComplete(); } void loop() { diff --git a/examples/simple_repeater/main.cpp b/examples/simple_repeater/main.cpp index 52049df3..297337ab 100644 --- a/examples/simple_repeater/main.cpp +++ b/examples/simple_repeater/main.cpp @@ -104,7 +104,7 @@ void setup() { the_mesh.sendSelfAdvertisement(16000, false); #endif - board.bootComplete(); + board.onBootComplete(); } void loop() { diff --git a/examples/simple_room_server/main.cpp b/examples/simple_room_server/main.cpp index 79999436..a3798b21 100644 --- a/examples/simple_room_server/main.cpp +++ b/examples/simple_room_server/main.cpp @@ -81,7 +81,7 @@ void setup() { the_mesh.sendSelfAdvertisement(16000, false); #endif - board.bootComplete(); + board.onBootComplete(); } void loop() { diff --git a/src/MeshCore.h b/src/MeshCore.h index 6c3c7318..b4c57faf 100644 --- a/src/MeshCore.h +++ b/src/MeshCore.h @@ -55,7 +55,7 @@ public: // Called by example setup() functions to signal that boot is complete. // Boards may override to stop a boot-indicator LED sequence or similar. // Default no-op: boards that don't care need not implement anything. - virtual void bootComplete() { /* no op */ } + virtual void onBootComplete() { /* no op */ } virtual void sleep(uint32_t secs) { /* no op */ } virtual uint32_t getGpio() { return 0; } virtual void setGpio(uint32_t values) {}