File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -1212,9 +1212,17 @@ void networkStart(NetIndex_t index, bool debug)
12121212 {
12131213 // Get the network bit
12141214 bitMask = (1 << index);
1215+
1216+ // If a network has a start sequence, and it is not started, start it
12151217 if (networkInterfaceTable[index].start && (!(networkStarted & bitMask)))
1216- systemPrintf (" Starting %s\r\n " , networkGetNameByIndex (index));
1217- networkSequenceStart (index, debug);
1218+ {
1219+ if (debug)
1220+ systemPrintf (" Starting network: %s\r\n " , networkGetNameByIndex (index));
1221+ networkSequenceStart (index, debug);
1222+ }
1223+ }
1224+ }
1225+
12181226// ----------------------------------------
12191227// Stop a network interface
12201228// ----------------------------------------
You can’t perform that action at this time.
0 commit comments