Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ota: detect Tasmota magic numbers when booting (#2370)
- inject dummy data sequence that is expected to hold current version info - check rtcmem markers and purge settings, since we don't want accidentally reading something as a kv - sometimes we cannot boot b/c of certain SDK params, purge last 16KiB as well ref. `SetOption78 1` https://tasmota.github.io/docs/Commands/#setoptions The original idea from Esphome: https://github.com/esphome/esphome/blob/0e59243b83913fc724d0229514a84b6ea14717cc/esphome/core/esphal.cpp#L275-L287 Does not seem to be working atm. Will need to re-check with the esphome builder, c/p did not work and I tried building with gcc-10 Specific things we want to do is to have 'version' byte between 2 'marker' bytes: https://github.com/arendst/Tasmota/blob/217addc2bb2cf46e7633c93e87954b245cb96556/tasmota/settings.ino#L218-L262 https://github.com/arendst/Tasmota/blob/0dfa38df89c8f2a1e582d53d79243881645be0b8/tasmota/i18n.h#L780-L782
- Loading branch information