1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-21 12:30:23 +02:00

Zepp OS: Fix update operations on Zepp OS 2.1+

This commit is contained in:
José Rebelo 2023-06-08 13:36:53 +01:00
parent b334773856
commit 594a611065

View File

@ -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) {