1
0
mirror of https://github.com/esphome/esphome.git synced 2026-02-08 08:41:59 +00:00
This commit is contained in:
J. Nick Koston
2026-02-04 07:29:34 +01:00
parent 4bf9cc6546
commit eeb24b67e1

View File

@@ -232,8 +232,6 @@ struct LogBuffer {
uint16_t remaining_() const { return this->size - this->pos; }
char *current_() { return this->data + this->pos; }
void write_(const char *value, size_t length) {
if (this->full_())
return;
const uint16_t available = this->remaining_();
const size_t copy_len = (length < static_cast<size_t>(available)) ? length : available;
if (copy_len > 0) {