mirror of
https://github.com/esphome/esphome.git
synced 2024-12-25 15:04:54 +01:00
ade7953_spi wrong size specified in read_array call (#7172)
This commit is contained in:
parent
cb9906b921
commit
a5f18dfe7f
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ bool AdE7953Spi::ade_read_16(uint16_t reg, uint16_t *value) {
|
|||
this->write_byte16(reg);
|
||||
this->transfer_byte(0x80);
|
||||
uint8_t recv[2];
|
||||
this->read_array(recv, 4);
|
||||
this->read_array(recv, 2);
|
||||
*value = encode_uint16(recv[0], recv[1]);
|
||||
this->disable();
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue