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 c1727800a..92b2a17ed 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,7 +1965,9 @@ 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(); + } final byte NR_DAYS = (byte) (1 + weatherSpec.forecasts.size()); int bytesPerDay = 4;