Skip to content

Commit e5dab6b

Browse files
committed
Rename bootComplete() to onBootComplete() for naming consistency
Matches the existing event-style lifecycle hooks on MainBoard (onBeforeTransmit, onAfterTransmit) per @liamcottle's review feedback.
1 parent 39a69b8 commit e5dab6b

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

examples/companion_radio/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ void setup() {
239239
ui_task.begin(disp, &sensors, the_mesh.getNodePrefs()); // still want to pass this in as dependency, as prefs might be moved
240240
#endif
241241

242-
board.bootComplete();
242+
board.onBootComplete();
243243
}
244244

245245
void loop() {

examples/kiss_modem/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ void setup() {
120120
modem->setGetStatsCallback(onGetStats);
121121
modem->begin();
122122

123-
board.bootComplete();
123+
board.onBootComplete();
124124
}
125125

126126
void loop() {

examples/simple_repeater/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ void setup() {
104104
the_mesh.sendSelfAdvertisement(16000, false);
105105
#endif
106106

107-
board.bootComplete();
107+
board.onBootComplete();
108108
}
109109

110110
void loop() {

examples/simple_room_server/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ void setup() {
8181
the_mesh.sendSelfAdvertisement(16000, false);
8282
#endif
8383

84-
board.bootComplete();
84+
board.onBootComplete();
8585
}
8686

8787
void loop() {

src/MeshCore.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class MainBoard {
5555
// Called by example setup() functions to signal that boot is complete.
5656
// Boards may override to stop a boot-indicator LED sequence or similar.
5757
// Default no-op: boards that don't care need not implement anything.
58-
virtual void bootComplete() { /* no op */ }
58+
virtual void onBootComplete() { /* no op */ }
5959
virtual void sleep(uint32_t secs) { /* no op */ }
6060
virtual uint32_t getGpio() { return 0; }
6161
virtual void setGpio(uint32_t values) {}

0 commit comments

Comments
 (0)