File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -252,12 +252,18 @@ module RPI {
252
252
};
253
253
"" "
254
254
255
+ phase Fpp.ToCpp.Phases.configComponents " ""
256
+ // Configure socket server if and only if there is a valid specification
257
+ if (state.hostName != nullptr && state.portNumber != 0) {
258
+ RPI::comm.configure(state.hostName, state.portNumber);
259
+ }
260
+ "" "
261
+
255
262
phase Fpp.ToCpp.Phases.startTasks " ""
256
263
// Initialize socket server if and only if there is a valid specification
257
264
if (state.hostName != nullptr && state.portNumber != 0) {
258
- Os::TaskString name(" ReceiveTask" );
259
265
// Uplink is configured for receive so a socket task is started
260
- RPI::comm.configure(state.hostName, state.portNumber );
266
+ Os::TaskString name( " ReceiveTask " );
261
267
RPI::comm.start(
262
268
name,
263
269
ConfigConstants::RPI_comm::PRIORITY,
Original file line number Diff line number Diff line change @@ -136,6 +136,9 @@ void setupTopology(const TopologyState& state) {
136
136
regCommands ();
137
137
// Autocoded configuration. Function provided by autocoder.
138
138
configComponents (state);
139
+ if (state.hostname != nullptr && state.port != 0 ) {
140
+ comm.configure (state.hostname , state.port );
141
+ }
139
142
// Project-specific component configuration. Function provided above. May be inlined, if desired.
140
143
configureTopology ();
141
144
// Autocoded parameter loading. Function provided by autocoder.
@@ -148,8 +151,7 @@ void setupTopology(const TopologyState& state) {
148
151
if (state.hostname != nullptr && state.port != 0 ) {
149
152
Os::TaskString name (" ReceiveTask" );
150
153
// Uplink is configured for receive so a socket task is started
151
- comm.configure (state.hostname , state.port );
152
- comm.start (name, true , COMM_PRIORITY, Default::STACK_SIZE);
154
+ comm.start (name, COMM_PRIORITY, Default::STACK_SIZE);
153
155
}
154
156
}
155
157
You can’t perform that action at this time.
0 commit comments