This commit is contained in:
J. Nick Koston
2025-11-21 11:00:23 -06:00
parent 7de66024ca
commit 1fe1a3d2c8
2 changed files with 4 additions and 4 deletions

View File

@@ -37,7 +37,7 @@ struct ComponentErrorMessage {
const Component *component;
const char *message;
// Track if message is flash pointer (needs LOG_STR_ARG) or RAM pointer
// Remove before 2026.12.0 when deprecated const char* API is removed
// Remove before 2026.6.0 when deprecated const char* API is removed
bool is_flash_ptr;
};
@@ -54,7 +54,7 @@ std::unique_ptr<std::vector<ComponentErrorMessage>> component_error_messages;
std::unique_ptr<std::vector<ComponentPriorityOverride>> setup_priority_overrides;
// Helper to store error messages - reduces duplication between deprecated and new API
// Remove before 2026.12.0 when deprecated const char* API is removed
// Remove before 2026.6.0 when deprecated const char* API is removed
void store_component_error_message(const Component *component, const char *message, bool is_flash_ptr) {
// Lazy allocate the error messages vector if needed
if (!component_error_messages) {

View File

@@ -217,8 +217,8 @@ class Component {
void status_set_warning(const char *message = nullptr);
void status_set_warning(const LogString *message);
// Remove before 2026.12.0
ESPDEPRECATED("Use status_set_error(LOG_STR(message)) instead. Removed in 2026.12.0", "2025.6.0")
// Remove before 2026.6.0
ESPDEPRECATED("Use status_set_error(LOG_STR(message)) instead. Will stop working in 2026.6.0", "2025.12.0")
void status_set_error(const char *message = nullptr);
void status_set_error(const LogString *message);