Commit 8edf4c9
fix: defer HA-triggered OTA execOTA() out of MQTT callback to main loop
Calling execOTA() directly inside the MQTT message handler blocked while
downloading firmware, causing MQTT to disconnect. Mirrors the forced-update
pattern: set _otaNonForcedPendingRequest in the callback and execute from
the main loop after MQTT processing is complete.
Closes #686
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 43b27c6 commit 8edf4c9
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
115 | 116 | | |
116 | 117 | | |
117 | 118 | | |
| |||
976 | 977 | | |
977 | 978 | | |
978 | 979 | | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
979 | 988 | | |
980 | 989 | | |
981 | 990 | | |
| |||
4375 | 4384 | | |
4376 | 4385 | | |
4377 | 4386 | | |
4378 | | - | |
| 4387 | + | |
4379 | 4388 | | |
4380 | 4389 | | |
4381 | 4390 | | |
| |||
0 commit comments