Colmi R09: Fix temperature byte conversion

This commit is contained in:
Arjan Schrijver 2025-01-02 21:34:02 +01:00
parent efd1e3d597
commit 603f9421d0

View File

@ -512,9 +512,9 @@ public class ColmiR0xPacketHandler {
for (int hour=0; hour<=23; hour++) {
syncingDay.set(Calendar.HOUR_OF_DAY, hour);
syncingDay.set(Calendar.MINUTE, 0);
float temp_00 = value[index];
float temp_00 = value[index] & 0xff;
index++;
float temp_30 = value[index];
float temp_30 = value[index] & 0xff;
index++;
if (temp_00 > 0) {
LOG.info("Received temperature data from {} days ago at {}:00: {} °C", days_ago, hour, temp_00);