Skip to content

Commit b63ffa7

Browse files
committed
WiFi: Merge RTK_WIFI specific changes
1 parent 724efe5 commit b63ffa7

File tree

2 files changed

+141
-57
lines changed

2 files changed

+141
-57
lines changed

Firmware/RTK_Everywhere/Network.ino

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ NetIndex_t networkIndexTable[NETWORK_OFFLINE];
113113
// Priority of the default network interface
114114
NetPriority_t networkPriority = NETWORK_OFFLINE; // Index into networkPriorityTable
115115

116+
// Interface event handlers set these flags, networkUpdate performs action
117+
bool networkEventStop[NETWORK_OFFLINE];
118+
116119
// The following entries have one bit per interface
117120
// Each bit represents an index into the networkInterfaceTable
118121
NetMask_t networkHasInternet_bm; // Track the online networks
@@ -628,6 +631,14 @@ bool networkIsPresent(NetIndex_t index)
628631
return ((!networkInterfaceTable[index].present) || *(networkInterfaceTable[index].present));
629632
}
630633

634+
//----------------------------------------
635+
// Interface stop event
636+
//----------------------------------------
637+
void networkInterfaceEventStop(NetIndex_t index)
638+
{
639+
networkEventStop[index] = true;
640+
}
641+
631642
//----------------------------------------
632643
// Mark network offline
633644
//----------------------------------------

0 commit comments

Comments
 (0)