1
0
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:
foxstidious 2024-01-14 14:41:29 -05:00 committed by José Rebelo
parent 0b7c53698a
commit ba59c62fa4
2 changed files with 8 additions and 0 deletions

View File

@ -97,6 +97,11 @@ public class CasioGBX100DeviceCoordinator extends CasioDeviceCoordinator {
return false;
}
@Override
public boolean supportsAlarmSnoozing() {
return true;
}
@Override
public boolean supportsFindDevice() {
return false;

View File

@ -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;
}