mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-06-03 23:31:34 +00:00
Rename bootComplete() to onBootComplete() for naming consistency
Matches the existing event-style lifecycle hooks on MainBoard (onBeforeTransmit, onAfterTransmit) per @liamcottle's review feedback.
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -120,7 +120,7 @@ void setup() {
|
||||
modem->setGetStatsCallback(onGetStats);
|
||||
modem->begin();
|
||||
|
||||
board.bootComplete();
|
||||
board.onBootComplete();
|
||||
}
|
||||
|
||||
void loop() {
|
||||
|
||||
@@ -104,7 +104,7 @@ void setup() {
|
||||
the_mesh.sendSelfAdvertisement(16000, false);
|
||||
#endif
|
||||
|
||||
board.bootComplete();
|
||||
board.onBootComplete();
|
||||
}
|
||||
|
||||
void loop() {
|
||||
|
||||
@@ -81,7 +81,7 @@ void setup() {
|
||||
the_mesh.sendSelfAdvertisement(16000, false);
|
||||
#endif
|
||||
|
||||
board.bootComplete();
|
||||
board.onBootComplete();
|
||||
}
|
||||
|
||||
void loop() {
|
||||
|
||||
+1
-1
@@ -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) {}
|
||||
|
||||
Reference in New Issue
Block a user