Skip to content

Commit 3dc19d4

Browse files
committed
refactor: rename module initialization functions for improved clarity
1 parent 03982eb commit 3dc19d4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/modules/ModuleRegistry.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ void register_module_initializer(ModuleInitFunc func) {
2020
* @brief Initializes all modules that have self-registered.
2121
* Called once by the core Meshtastic firmware setup routine.
2222
*/
23-
void init_all_plugin_modules() {
24-
LOG_INFO("Initializing self-registering plugin modules via vector...\n");
23+
void init_dynamic_modules() {
24+
LOG_INFO("Initializing dynamic modules via vector...\n");
2525

2626
// Loop through the collected pointers and execute the setup functions
2727
for (ModuleInitFunc func : g_module_init_functions) {

src/modules/ModuleRegistry.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ extern std::vector<ModuleInitFunc> g_module_init_functions;
1616
void register_module_initializer(ModuleInitFunc func);
1717

1818
// Function called by the core firmware setup to initialize all modules
19-
void init_all_plugin_modules();
19+
void init_dynamic_modules();
2020

2121
/**
2222
* @brief Macro used by module authors to self-register a new Meshtastic Module.

src/modules/Modules.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ void setupModules()
301301
new RangeTestModule();
302302
#endif
303303

304-
init_all_plugin_modules();
304+
init_dynamic_modules();
305305

306306
// NOTE! This module must be added LAST because it likes to check for replies from other modules and avoid sending extra
307307
// acks

0 commit comments

Comments
 (0)