mirror of
https://github.com/esphome/esphome.git
synced 2026-02-08 08:41:59 +00:00
tweak
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user