diff --git a/esphome/components/remote_base/remote_base.h b/esphome/components/remote_base/remote_base.h index 70691177ef..4131d080f5 100644 --- a/esphome/components/remote_base/remote_base.h +++ b/esphome/components/remote_base/remote_base.h @@ -54,7 +54,7 @@ class RemoteReceiveData { uint32_t get_index() const { return index_; } int32_t operator[](uint32_t index) const { return this->data_[index]; } int32_t size() const { return this->data_.size(); } - bool is_valid(uint32_t offset) const { return this->index_ + offset < this->data_.size(); } + bool is_valid(uint32_t offset = 0) const { return this->index_ + offset < this->data_.size(); } int32_t peek(uint32_t offset = 0) const { return this->data_[this->index_ + offset]; } bool peek_mark(uint32_t length, uint32_t offset = 0) const; bool peek_space(uint32_t length, uint32_t offset = 0) const;