mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Add support for snooze alarm on CasioGBX100 devices
This commit is contained in:
+5
@@ -97,6 +97,11 @@ public class CasioGBX100DeviceCoordinator extends CasioDeviceCoordinator {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsAlarmSnoozing() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsFindDevice() {
|
||||
return false;
|
||||
|
||||
+3
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user