mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-29 05:16:51 +01:00
Amazfit Neo: fix alarms setting to "unused" on connect.
This commit is contained in:
parent
9764ce03b2
commit
eceb612c9e
@ -3895,7 +3895,7 @@ public abstract class HuamiSupport extends AbstractBTLEDeviceSupport {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
private HuamiSupport requestAlarms(TransactionBuilder builder) {
|
protected HuamiSupport requestAlarms(TransactionBuilder builder) {
|
||||||
LOG.info("Requesting alarms");
|
LOG.info("Requesting alarms");
|
||||||
//FIXME: on older devices only the first one works, and on newer only the last is sufficient
|
//FIXME: on older devices only the first one works, and on newer only the last is sufficient
|
||||||
writeToConfiguration(builder, HuamiService.COMMAND_REQUEST_ALARMS);
|
writeToConfiguration(builder, HuamiService.COMMAND_REQUEST_ALARMS);
|
||||||
|
@ -80,6 +80,11 @@ public class AmazfitNeoSupport extends MiBand5Support {
|
|||||||
writeToChunked(builder, 2, bytes);
|
writeToChunked(builder, 2, bytes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected AmazfitNeoSupport requestAlarms(TransactionBuilder builder) {
|
||||||
|
return this; //Neo always returns response array with '03' in it which marks alarms unused on connect
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean supportsHourlyChime() { return true; }
|
public boolean supportsHourlyChime() { return true; }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user