Skip to content

Commit 06fdaa1

Browse files
committed
Fixed return variable init and expected value
1 parent 7916004 commit 06fdaa1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/WiFi/examples/WiFiScanDualAntenna/WiFiScanDualAntenna.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
void setup()
2020
{
21-
bool err = ESP_FAIL;
21+
bool err = false;
2222
Serial.begin(115200);
2323

2424
// Set WiFi to station mode and disconnect from an AP if it was previously connected
@@ -36,7 +36,7 @@ void setup()
3636
* https://docs.espressif.com/projects/arduino-esp32/en/latest/api/wifi.html
3737
*/
3838

39-
if(err == ESP_FAIL) {
39+
if(err == false) {
4040
Serial.println("Dual Antenna configuration failed!");
4141
} else {
4242
Serial.println("Dual Antenna configuration successfuly done!");

0 commit comments

Comments
 (0)