mirror of
https://github.com/esphome/esphome.git
synced 2026-09-16 17:48:40 +00:00
74153e55acd4c3c53c68c4c307166e2af9c81b69
Version the crash data by encoding the version in the magic value (upper 16 bits = 0xDEAD sentinel, lower 16 bits = version). This allows safely changing the scratch register layout in future firmware without misinterpreting old crash data, and costs zero scratch registers (we only have 8). Add USE_RP2040_CRASH_HANDLER define and guard all call sites so the crash handler can be conditionally compiled, matching the ESP32 crash handler pattern. Add crash_handler_has_data() so callers can check for crash data without triggering log output. Log crash data when the API client subscribes to logs so dashboard and HA users see crash reports even when connecting after boot, matching the ESP32 crash handler behavior.
Description
ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
Readme
Multiple Licenses
614 MiB
Languages
C++
55.8%
Python
43.6%
C
0.3%
JavaScript
0.2%
