mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-10 09:01:55 +01:00
Colmi R09: Fix temperature byte conversion
This commit is contained in:
parent
efd1e3d597
commit
603f9421d0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user