ESPHome 2026.10.0-dev
Loading...
Searching...
No Matches
safe_mode_button.cpp
Go to the documentation of this file.
1#include "safe_mode_button.h"
2#include "esphome/core/hal.h"
3#include "esphome/core/log.h"
5
6namespace esphome::safe_mode {
7
8static const char *const TAG = "safe_mode.button";
9
11 ESP_LOGI(TAG, "Restarting in safe mode");
13
14 // Let MQTT settle a bit
15 delay(100); // NOLINT
17}
18
19void SafeModeButton::dump_config() { LOG_BUTTON("", "Safe Mode Button", this); }
20
21} // namespace esphome::safe_mode
void set_safe_mode_pending(const bool &pending)
Set to true if the next startup will enter safe mode.
void HOT delay(uint32_t ms)
Definition hal.cpp:85
Application App
Global storage of Application pointer - only one Application can exist.