Эх сурвалжийг харах

Rename bootComplete() to onBootComplete() for naming consistency

Matches the existing event-style lifecycle hooks on MainBoard
(onBeforeTransmit, onAfterTransmit) per @liamcottle's review feedback.
AtlavoxDev 2 сар өмнө
parent
commit
e5dab6b999

+ 1 - 1
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() {

+ 1 - 1
examples/kiss_modem/main.cpp

@@ -120,7 +120,7 @@ void setup() {
   modem->setGetStatsCallback(onGetStats);
   modem->begin();
 
-  board.bootComplete();
+  board.onBootComplete();
 }
 
 void loop() {

+ 1 - 1
examples/simple_repeater/main.cpp

@@ -104,7 +104,7 @@ void setup() {
   the_mesh.sendSelfAdvertisement(16000, false);
 #endif
 
-  board.bootComplete();
+  board.onBootComplete();
 }
 
 void loop() {

+ 1 - 1
examples/simple_room_server/main.cpp

@@ -81,7 +81,7 @@ void setup() {
   the_mesh.sendSelfAdvertisement(16000, false);
 #endif
 
-  board.bootComplete();
+  board.onBootComplete();
 }
 
 void loop() {

+ 1 - 1
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) {}