mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-20 21:01:25 +03:00
Added check if wifi shield is not present
This commit is contained in:
@ -150,12 +150,13 @@ uint8_t WiFiClass::encryptionType()
|
||||
}
|
||||
|
||||
|
||||
uint8_t WiFiClass::scanNetworks()
|
||||
int8_t WiFiClass::scanNetworks()
|
||||
{
|
||||
uint8_t attempts = 10;
|
||||
uint8_t numOfNetworks = 0;
|
||||
|
||||
WiFiDrv::startScanNetworks();
|
||||
if (WiFiDrv::startScanNetworks() == WL_FAILURE)
|
||||
return WL_FAILURE;
|
||||
do
|
||||
{
|
||||
delay(2000);
|
||||
|
Reference in New Issue
Block a user