We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c3359f commit fb2c94aCopy full SHA for fb2c94a
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