Skip to content

Commit df445e4

Browse files
committed
Add networkPrintDefaultInterface
1 parent fc56ed7 commit df445e4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Firmware/RTK_Everywhere/Network.ino

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2532,9 +2532,21 @@ void networkUseDefaultInterface()
25322532
isDefault = networkInterfaceTable[index].netif->isDefault();
25332533
if (!isDefault)
25342534
networkInterfaceTable[index].netif->setDefault();
2535+
2536+
if (settings.debugNetworkLayer)
2537+
networkPrintDefaultInterface();
25352538
}
25362539
}
25372540

2541+
//----------------------------------------
2542+
// Print the default network interface specs
2543+
//----------------------------------------
2544+
void networkPrintDefaultInterface()
2545+
{
2546+
NetworkInterface *irfc = Network.getDefaultInterface();
2547+
systemPrintln(irfc->printTo(Serial));
2548+
}
2549+
25382550
//----------------------------------------
25392551
// Add a network user
25402552
//----------------------------------------

0 commit comments

Comments
 (0)