mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-11 02:09:57 +03:00
fix read_bitvalue() - for solar pump on/off in #397
This commit is contained in:
@@ -85,7 +85,7 @@ class Telegram {
|
||||
return; // out of bounds
|
||||
}
|
||||
|
||||
value = (uint8_t)(((message_data[index]) >> (bit)) & 0x01);
|
||||
value = (uint8_t)(((message_data[index - offset]) >> (bit)) & 0x01);
|
||||
}
|
||||
|
||||
// read values from a telegram. We always store the value, regardless if its garbage
|
||||
|
||||
Reference in New Issue
Block a user