mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-01 18:48:28 +02:00
Add encode_uint32 method (#1427)
This commit is contained in:
@@ -41,7 +41,7 @@ void MAX31855Sensor::read_data_() {
|
||||
this->read_array(data, 4);
|
||||
this->disable();
|
||||
|
||||
const uint32_t mem = data[0] << 24 | data[1] << 16 | data[2] << 8 | data[3] << 0;
|
||||
const uint32_t mem = encode_uint32(data[0], data[1], data[2], data[3]);
|
||||
|
||||
// Verify we got data
|
||||
if (mem != 0xFFFFFFFF) {
|
||||
|
||||
Reference in New Issue
Block a user