Skip to content

Commit 2382129

Browse files
committed
Network: Rename higherPriority to highestPriority
1 parent 3cbef28 commit 2382129

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Firmware/RTK_Everywhere/Network.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1355,7 +1355,7 @@ void networkInterfaceInternetConnectionLost(NetIndex_t index)
13551355
bool networkIsHighestPriority(NetIndex_t index)
13561356
{
13571357
NetPriority_t priority;
1358-
bool higherPriority;
1358+
bool highestPriority;
13591359

13601360
// Validate the index
13611361
networkValidateIndex(index);
@@ -1364,10 +1364,10 @@ bool networkIsHighestPriority(NetIndex_t index)
13641364
priority = networkPriority;
13651365

13661366
// Determine if the specified interface has higher priority
1367-
higherPriority = (priority == NETWORK_OFFLINE);
1368-
if (!higherPriority)
1369-
higherPriority = (priority >= networkPriorityTable[index]);
1370-
return higherPriority;
1367+
highestPriority = (priority == NETWORK_OFFLINE);
1368+
if (highestPriority == false)
1369+
highestPriority = (priority >= networkPriorityTable[index]);
1370+
return highestPriority;
13711371
}
13721372

13731373
//----------------------------------------

0 commit comments

Comments
 (0)