Skip to content

Commit 1bb87f2

Browse files
committed
Network: Fix comments and remove blank lines
1 parent f9d15fa commit 1bb87f2

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Firmware/RTK_Everywhere/Network.ino

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ const char *networkGetNameByPriority(NetPriority_t priority)
587587
}
588588

589589
//----------------------------------------
590-
// Determine if any network interface is online
590+
// Determine if any network interface has access to the internet
591591
//----------------------------------------
592592
bool networkHasInternet()
593593
{
@@ -604,7 +604,7 @@ void networkInterfaceEventStop(NetIndex_t index)
604604
}
605605

606606
//----------------------------------------
607-
// Determine if the network interface is online
607+
// Determine the specified network interface access to the internet
608608
//----------------------------------------
609609
bool networkInterfaceHasInternet(NetIndex_t index)
610610
{
@@ -616,7 +616,7 @@ bool networkInterfaceHasInternet(NetIndex_t index)
616616
}
617617

618618
//----------------------------------------
619-
// Mark network offline
619+
// Mark network interface as having NO access to the internet
620620
//----------------------------------------
621621
void networkInterfaceEventInternetLost(NetIndex_t index)
622622
{
@@ -685,7 +685,7 @@ void networkInterfaceEventInternetLost(NetIndex_t index)
685685
}
686686

687687
//----------------------------------------
688-
// Mark network online
688+
// Mark network interface as having access to the internet
689689
//----------------------------------------
690690
void networkInterfaceEventInternetAvailable(NetIndex_t index)
691691
{
@@ -1124,7 +1124,6 @@ void networkSequenceStop(NetIndex_t index, bool debug)
11241124
// Start the sequence
11251125
networkSeqStopping |= bitMask;
11261126
networkStarted &= ~bitMask;
1127-
11281127
networkSequence[index] = sequence;
11291128
}
11301129
}
@@ -1184,7 +1183,6 @@ void networkSequenceStopPolling(NetIndex_t index, bool debug, bool forcedStop)
11841183
if (forcedStop)
11851184
{
11861185
networkStarted &= ~bitMask;
1187-
11881186
networkSeqRequest &= ~bitMask;
11891187
networkSeqNext &= ~bitMask;
11901188
}

0 commit comments

Comments
 (0)