ade7953_spi wrong size specified in read_array call (#7172)

This commit is contained in:
SimoPk 2024-08-01 12:39:54 +02:00 committed by GitHub
parent cb9906b921
commit a5f18dfe7f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;