mirror of
https://github.com/esphome/esphome.git
synced 2025-02-08 00:22:03 +01:00
ade7953_spi wrong size specified in read_array call (#7172)
This commit is contained in:
parent
cb9906b921
commit
a5f18dfe7f
@ -60,7 +60,7 @@ bool AdE7953Spi::ade_read_16(uint16_t reg, uint16_t *value) {
|
|||||||
this->write_byte16(reg);
|
this->write_byte16(reg);
|
||||||
this->transfer_byte(0x80);
|
this->transfer_byte(0x80);
|
||||||
uint8_t recv[2];
|
uint8_t recv[2];
|
||||||
this->read_array(recv, 4);
|
this->read_array(recv, 2);
|
||||||
*value = encode_uint16(recv[0], recv[1]);
|
*value = encode_uint16(recv[0], recv[1]);
|
||||||
this->disable();
|
this->disable();
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user