We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 816e2cf commit 860d573Copy full SHA for 860d573
libraries/lwIpWrapper/src/CNetIf.cpp
@@ -228,7 +228,7 @@ CNetIf* CLwipIf::get(NetIfType_t type,
228
bool isStation = true;
229
bool isEth = false;
230
231
- if (type >= 0 && type < NETWORK_INTERFACES_MAX_NUM) {
+ if (type == NI_WIFI_STATION || type == NI_WIFI_SOFTAP || type == NI_ETHERNET) {
232
if (net_ifs[type] == nullptr) {
233
switch (type) {
234
case NI_WIFI_STATION:
0 commit comments