mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-29 13:26:50 +01:00
Zepp OS: Fix update operations on Zepp OS 2.1+
This commit is contained in:
parent
b334773856
commit
594a611065
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user