mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Amazfit Neo: fix alarms setting to "unused" on connect.
This commit is contained in:
+1
-1
@@ -3895,7 +3895,7 @@ public abstract class HuamiSupport extends AbstractBTLEDeviceSupport {
|
||||
return this;
|
||||
}
|
||||
|
||||
private HuamiSupport requestAlarms(TransactionBuilder builder) {
|
||||
protected HuamiSupport requestAlarms(TransactionBuilder builder) {
|
||||
LOG.info("Requesting alarms");
|
||||
//FIXME: on older devices only the first one works, and on newer only the last is sufficient
|
||||
writeToConfiguration(builder, HuamiService.COMMAND_REQUEST_ALARMS);
|
||||
|
||||
+5
@@ -80,6 +80,11 @@ public class AmazfitNeoSupport extends MiBand5Support {
|
||||
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
|
||||
public boolean supportsHourlyChime() { return true; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user