mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-13 03:07:32 +01:00
fix previous commit
This commit is contained in:
parent
f956d94181
commit
5dfd40062f
@ -654,7 +654,7 @@ public class PebbleProtocol extends GBDeviceProtocol {
|
|||||||
buf.put(dismiss_string.getBytes());
|
buf.put(dismiss_string.getBytes());
|
||||||
|
|
||||||
// open and mute actions
|
// open and mute actions
|
||||||
if (hasHandle) {
|
if (hasHandle && !"ALARMCLOCKRECEIVER".equals(sourceName)) {
|
||||||
buf.put((byte) 0x01);
|
buf.put((byte) 0x01);
|
||||||
buf.put((byte) 0x02); // generic
|
buf.put((byte) 0x02); // generic
|
||||||
buf.put((byte) 0x01); // number attributes
|
buf.put((byte) 0x01); // number attributes
|
||||||
@ -892,7 +892,7 @@ public class PebbleProtocol extends GBDeviceProtocol {
|
|||||||
}
|
}
|
||||||
|
|
||||||
byte dismiss_action_id;
|
byte dismiss_action_id;
|
||||||
if (hasHandle) {
|
if (hasHandle && !"ALARMCLOCKRECEIVER".equals(sourceName)) {
|
||||||
actions_count = 3;
|
actions_count = 3;
|
||||||
dismiss_string = "Dismiss";
|
dismiss_string = "Dismiss";
|
||||||
dismiss_action_id = 0x02;
|
dismiss_action_id = 0x02;
|
||||||
@ -979,7 +979,7 @@ public class PebbleProtocol extends GBDeviceProtocol {
|
|||||||
buf.put(dismiss_string.getBytes());
|
buf.put(dismiss_string.getBytes());
|
||||||
|
|
||||||
// open and mute actions
|
// open and mute actions
|
||||||
if (hasHandle) {
|
if (hasHandle && !"ALARMCLOCKRECEIVER".equals(sourceName)) {
|
||||||
buf.put((byte) 0x01);
|
buf.put((byte) 0x01);
|
||||||
buf.put((byte) 0x02); // generic action
|
buf.put((byte) 0x02); // generic action
|
||||||
buf.put((byte) 0x01); // number attributes
|
buf.put((byte) 0x01); // number attributes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user