[debug] Use stack buffers with buf_append helper instead of std::string (#13020)

This commit is contained in:
J. Nick Koston authored and GitHub committed 2026-01-07 10:19:10 -10:00
1 parent 050e9b0d4a
commit 44eac36e05
8 files changed
+320 -208

No files matched your search

+4 -2
View File
@@ -5,11 +5,13 @@
namespace esphome {
namespace debug {
std::string DebugComponent::get_reset_reason_() { return ""; }
const char *DebugComponent::get_reset_reason_(std::span<char, RESET_REASON_BUFFER_SIZE> buffer) { return ""; }
const char *DebugComponent::get_wakeup_cause_(std::span<char, RESET_REASON_BUFFER_SIZE> buffer) { return ""; }
uint32_t DebugComponent::get_free_heap_() { return INT_MAX; }
void DebugComponent::get_device_info_(std::string &device_info) {}
size_t DebugComponent::get_device_info_(std::span<char, DEVICE_INFO_BUFFER_SIZE> buffer, size_t pos) { return pos; }
void DebugComponent::update_platform_() {}