mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-27 12:26:48 +01:00
Add support for snooze alarm on CasioGBX100 devices
This commit is contained in:
parent
0b7c53698a
commit
ba59c62fa4
@ -97,6 +97,11 @@ public class CasioGBX100DeviceCoordinator extends CasioDeviceCoordinator {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsAlarmSnoozing() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsFindDevice() {
|
||||
return false;
|
||||
|
@ -538,6 +538,9 @@ public class CasioGBX100DeviceSupport extends Casio2C2DSupport implements Shared
|
||||
Alarm alm = alarms.get(i);
|
||||
if(alm.getEnabled()) {
|
||||
settings[0] = 0x40;
|
||||
if (alm.getSnooze()) {
|
||||
settings[0] = 0x50;
|
||||
}
|
||||
} else {
|
||||
settings[0] = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user