Commit 322e93c
committed
Fix: Show QR code only when WiFi is connected in Station mode
- Added WiFi.status() check before generating QR code
- QR code only displayed when WL_CONNECTED
- Periodic updates now clear QR code area if device disconnects
- Prevents displaying outdated credentials when not connected
- Improves user experience by showing accurate connection state
Behavior:
- Connected: Shows QR code with WiFi credentials
- Disconnected: No QR code displayed (black area)
- Reconnects: QR code reappears automatically
Flash: 1,161,085 bytes (+48 bytes)
RAM: 53,072 bytes (16.2%)1 parent 4b261de commit 322e93c
1 file changed
+20
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
368 | | - | |
| 368 | + | |
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
| |||
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
377 | | - | |
378 | | - | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
379 | 380 | | |
380 | 381 | | |
381 | 382 | | |
| |||
424 | 425 | | |
425 | 426 | | |
426 | 427 | | |
427 | | - | |
| 428 | + | |
428 | 429 | | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
429 | 445 | | |
430 | 446 | | |
431 | 447 | | |
| |||
0 commit comments