fix(wifi): Fix printDiag() when WiFi not initialized#12062
fix(wifi): Fix printDiag() when WiFi not initialized#12062me-no-dev merged 1 commit intoespressif:masterfrom
Conversation
👋 Hello szerwi, we appreciate your contribution to this project! 📘 Please review the project's Contributions Guide for key guidelines on code, documentation, testing, and more. 🖊️ Please also make sure you have read and signed the Contributor License Agreement for this project. Click to see more instructions ...
Review and merge process you can expect ...
|
Test Results 76 files 76 suites 17m 42s ⏱️ Results for commit 1076bb5. ♻️ This comment has been updated with latest results. |
Memory usage test (comparing PR against master branch)The table below shows the summary of memory usage change (decrease - increase) in bytes and percentage for each target.
Click to expand the detailed deltas report [usage change in BYTES]
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
This is old API. I suggest you use |
Is I use both for debugging my app and I have noticed that bug with |
|
BTW NAN is not enabled |
Description of Change
Initialize local variables at declaration in
WiFiClass::printDiag(Print &p)to prevent crash when WiFi is not initialized.Previously, when WiFi was not initialized,
modecould be any value leading to crash when trying to print its value.Also added
NANvalue tomodes[], aswifi_mode_tcan have following values:Test Scenarios
Tested on arduino-esp32 v3.3.4 and ESP32 DevKit
Related links