From 594a611065307dd97788ffc190636050b74e9255 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Rebelo?= Date: Thu, 8 Jun 2023 13:36:53 +0100 Subject: [PATCH] Zepp OS: Fix update operations on Zepp OS 2.1+ --- .../huami/operations/UpdateFirmwareOperation2020.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/operations/UpdateFirmwareOperation2020.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/operations/UpdateFirmwareOperation2020.java index 8f32a499a..ed1d6ffc0 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/operations/UpdateFirmwareOperation2020.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/operations/UpdateFirmwareOperation2020.java @@ -72,11 +72,6 @@ public class UpdateFirmwareOperation2020 extends UpdateFirmwareOperation { @Override protected void handleNotificationNotif(byte[] value) { - if (value.length != 3 && value.length != 6 && value.length != 7 && value.length != 11) { - LOG.error("Notifications should be 3, 6, 7 or 11 bytes long."); - getSupport().logMessageContent(value); - return; - } boolean success = (value[2] == HuamiService.SUCCESS) || ((value[1] == REPLY_UPDATE_PROGRESS) && value.length >= 6); // ugly if (value[0] == HuamiService.RESPONSE && success) {