2024-01-10 18:54:00 +01:00
|
|
|
/* Copyright (C) 2016-2024 Carsten Pfeiffer, Daniele Gobbetti
|
2017-03-10 14:53:19 +01:00
|
|
|
|
|
|
|
This file is part of Gadgetbridge.
|
|
|
|
|
|
|
|
Gadgetbridge is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU Affero General Public License as published
|
|
|
|
by the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
Gadgetbridge is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU Affero General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Affero General Public License
|
2024-01-10 18:54:00 +01:00
|
|
|
along with this program. If not, see <https://www.gnu.org/licenses/>. */
|
2016-03-20 01:05:23 +01:00
|
|
|
package nodomain.freeyourgadget.gadgetbridge.service.devices.miband;
|
|
|
|
|
2019-01-26 15:52:40 +01:00
|
|
|
import androidx.annotation.NonNull;
|
2016-03-20 01:05:23 +01:00
|
|
|
import nodomain.freeyourgadget.gadgetbridge.devices.miband.MiBandConst;
|
|
|
|
import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice;
|
|
|
|
|
|
|
|
public abstract class AbstractMi1SFirmwareInfo extends AbstractMiFirmwareInfo {
|
|
|
|
|
|
|
|
public AbstractMi1SFirmwareInfo(@NonNull byte[] wholeFirmwareBytes) {
|
|
|
|
super(wholeFirmwareBytes);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean isGenerallyCompatibleWith(GBDevice device) {
|
2016-08-26 20:57:59 +02:00
|
|
|
return MiBandConst.MI_1S.equals(device.getModel());
|
2016-03-20 01:05:23 +01:00
|
|
|
}
|
2016-03-21 23:41:37 +01:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean isSingleMiBandFirmware() {
|
|
|
|
return false;
|
|
|
|
}
|
2016-03-20 01:05:23 +01:00
|
|
|
}
|