ESPHome 2026.3.0-dev
Loading...
Searching...
No Matches
reset_reason.h
Go to the documentation of this file.
1#pragma once
2
4
5#if defined(USE_ZEPHYR) && (defined(USE_LOGGER_EARLY_MESSAGE) || defined(USE_DEBUG))
6
7#include <cstddef>
8#include <span>
9
10namespace esphome::zephyr {
11
12static constexpr size_t RESET_REASON_BUFFER_SIZE = 128;
13
14const char *get_reset_reason(std::span<char, RESET_REASON_BUFFER_SIZE> buffer);
15
16} // namespace esphome::zephyr
17
18#endif
const char * get_reset_reason(std::span< char, RESET_REASON_BUFFER_SIZE > buffer)