Skip to content

Commit 35f8ab7

Browse files
committed
Actions Fix.
1 parent ff8dbaa commit 35f8ab7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/Commander-API-Commands.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,13 +484,28 @@ void commander_wifiScan_func( char *args, Stream *response ){
484484

485485
for( i = 0; i < num; i++ ){
486486

487+
#ifdef ESP32
488+
487489
if( WiFi.encryptionType( i ) != WIFI_AUTH_OPEN ){
488490

489491
response -> print( "\t* " );
490492
hasLocked = true;
491493

492494
}
493495

496+
#endif
497+
498+
#ifdef ESP8266
499+
500+
if( WiFi.encryptionType( i ) != ENC_TYPE_NONE ){
501+
502+
response -> print( "\t* " );
503+
hasLocked = true;
504+
505+
}
506+
507+
#endif
508+
494509
else{
495510

496511
response -> print( "\t " );

0 commit comments

Comments
 (0)