1
0
mirror of https://github.com/esphome/esphome.git synced 2026-02-08 16:51:52 +00:00
This commit is contained in:
J. Nick Koston
2026-02-04 07:04:09 +01:00
parent b39b2fbe23
commit c4994d4f62

View File

@@ -213,8 +213,8 @@ struct LogBuffer {
bool full_() const { return this->pos >= this->size; }
uint16_t remaining_() const { return this->size - this->pos; }
char *current_() { return this->data + this->pos; }
void put_char_(char c) { this->data[this->pos++] = c; }
void null_terminate_() { this->data[this->full_() ? this->size - 1 : this->pos] = '\0'; }
inline void put_char_(char c) { this->data[this->pos++] = c; }
inline void null_terminate_() { this->data[this->full_() ? this->size - 1 : this->pos] = '\0'; }
void write_(const char *value, size_t length) {
if (this->full_())
return;