We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56be13b commit e7df08aCopy full SHA for e7df08a
libraries/WiFi/src/WiFi.cpp
@@ -45,13 +45,13 @@ extern "C" {
45
* @param p Print interface
46
*/
47
void WiFiClass::printDiag(Print &p) {
48
- const char *modes[] = {"NULL", "STA", "AP", "STA+AP"};
+ const char *modes[] = {"NULL", "STA", "AP", "STA+AP", "NAN"};
49
50
- wifi_mode_t mode;
+ wifi_mode_t mode = WIFI_MODE_NULL;
51
esp_wifi_get_mode(&mode);
52
53
- uint8_t primaryChan;
54
- wifi_second_chan_t secondChan;
+ uint8_t primaryChan = 0;
+ wifi_second_chan_t secondChan = WIFI_SECOND_CHAN_NONE;
55
esp_wifi_get_channel(&primaryChan, &secondChan);
56
57
p.print("Mode: ");
@@ -67,7 +67,7 @@ void WiFiClass::printDiag(Print &p) {
67
p.println(wifi_station_get_connect_status());
68
69
70
- wifi_config_t conf;
+ wifi_config_t conf = {0};
71
esp_wifi_get_config((wifi_interface_t)WIFI_IF_STA, &conf);
72
73
const char *ssid = reinterpret_cast<const char *>(conf.sta.ssid);
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments