mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 17:27:59 +01:00
pgm_read_byte to progmem_read_byte
This commit is contained in:
parent
955ce0b675
commit
c05ac32352
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
#include "decompressor.h"
|
||||
#include "esphome/core/log.h"
|
||||
#include "esphome/core/hal.h"
|
||||
|
||||
namespace esphome {
|
||||
namespace store_yaml {
|
||||
|
@ -31,7 +32,7 @@ uint32_t Decompressor::get_bits_(size_t bits) {
|
|||
}
|
||||
|
||||
while (this->size_ < bits) {
|
||||
this->buff_ = (this->buff_ << 8) | pgm_read_byte(&this->data_ptr_[this->pos_++]);
|
||||
this->buff_ = (this->buff_ << 8) | progmem_read_byte(&this->data_ptr_[this->pos_++]);
|
||||
this->size_ += 8;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue