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