Skip to content

Commit 7b96708

Browse files
committed
Move print to debug print
1 parent 0439344 commit 7b96708

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Firmware/RTK_Everywhere/Network.ino

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff 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
//----------------------------------------

0 commit comments

Comments
 (0)