mirror of
https://github.com/esphome/esphome.git
synced 2025-04-22 16:40:49 +02:00
[remote_base] Add default value for offset in is_valid (#8159)
This commit is contained in:
parent
7392397630
commit
051fa3a49f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue