We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c58899 commit ed6886dCopy full SHA for ed6886d
libraries/lwIpWrapper/src/CNetIf.cpp
@@ -293,7 +293,10 @@ CNetIf::CNetIf(NetworkDriver *driver)
293
294
int CNetIf::begin(const IPAddress &ip, const IPAddress &nm, const IPAddress &gw) {
295
CLwipIf::getInstance(); // This call is required in order to setup the network stack
296
- driver->begin();
+
297
+ if(driver != nullptr) {
298
+ driver->begin();
299
+ }
300
301
ip_addr_t _ip = fromArduinoIP(ip);
302
ip_addr_t _nm = fromArduinoIP(nm);
0 commit comments