Add on_safe_mode trigger (#6790)

This commit is contained in:
Keith Burzinski
2024-05-22 14:43:13 -05:00
committed by GitHub
parent 1ca7c2d7dd
commit 9a6fde21ee
5 changed files with 40 additions and 0 deletions
@@ -94,6 +94,8 @@ bool SafeModeComponent::should_enter_safe_mode(uint8_t num_attempts, uint32_t en
ESP_LOGW(TAG, "SAFE MODE IS ACTIVE");
this->safe_mode_callback_.call();
return true;
} else {
// increment counter