mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Huami: set forecast limit to 6 days (current + 6 in future)
This commit is contained in:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user