Print out the encryption type as integer when it's not known

This commit is contained in:
Avamander 2025-07-13 00:53:07 +03:00 committed by GitHub
parent e6b229bf7d
commit fd8befd35a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -105,7 +105,9 @@ void printEncryptionType(int thisType) {
break;
case ENC_TYPE_UNKNOWN:
default:
Serial.println("Unknown");
Serial.print("Unknown (");
Serial.print(WiFi.encryptionType(thisNet));
Serial.println(")");
break;
}
}