From 3940387b1a37406d746085d4fc417a20e1a8e712 Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Mon, 29 Jun 2020 19:41:56 +0200 Subject: [PATCH] Huami: set forecast limit to 6 days (current + 6 in future) --- .../gadgetbridge/service/devices/huami/HuamiSupport.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/HuamiSupport.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/HuamiSupport.java index 92b2a17ed..7decf2fac 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/HuamiSupport.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/HuamiSupport.java @@ -1965,8 +1965,8 @@ public class HuamiSupport extends AbstractBTLEDeviceSupport { try { TransactionBuilder builder = performInitialized("Sending weather forecast"); - if (weatherSpec.forecasts.size() > 3) { //TDOD: find out the limits for each device - weatherSpec.forecasts.subList(3, weatherSpec.forecasts.size()).clear(); + if (weatherSpec.forecasts.size() > 6) { //TDOD: find out the limits for each device + weatherSpec.forecasts.subList(6, weatherSpec.forecasts.size()).clear(); } final byte NR_DAYS = (byte) (1 + weatherSpec.forecasts.size()); int bytesPerDay = 4;