Skip to content

Commit

Permalink
Move module init out of repeater clause
Browse files Browse the repository at this point in the history
  • Loading branch information
GUVWAF committed Jun 6, 2023
1 parent d70bd23 commit cdf44ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/Modules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ void setupModules()
waypointModule = new WaypointModule();
textMessageModule = new TextMessageModule();
traceRouteModule = new TraceRouteModule();
neighborInfoModule = new NeighborInfoModule();

// Note: if the rest of meshtastic doesn't need to explicitly use your module, you do not need to assign the instance
// to a global variable.
Expand Down Expand Up @@ -89,9 +90,8 @@ void setupModules()
} else {
adminModule = new AdminModule();
traceRouteModule = new TraceRouteModule();
neighborInfoModule = new NeighborInfoModule();
}
// NOTE! This module must be added LAST because it likes to check for replies from other modules and avoid sending extra
// acks
routingModule = new RoutingModule();
}
}

0 comments on commit cdf44ce

Please sign in to comment.