fix previous commit

This commit is contained in:
Andreas Shimokawa 2017-02-10 23:16:22 +01:00
parent f956d94181
commit 5dfd40062f
1 changed files with 3 additions and 3 deletions

View File

@ -654,7 +654,7 @@ public class PebbleProtocol extends GBDeviceProtocol {
buf.put(dismiss_string.getBytes());
// open and mute actions
if (hasHandle) {
if (hasHandle && !"ALARMCLOCKRECEIVER".equals(sourceName)) {
buf.put((byte) 0x01);
buf.put((byte) 0x02); // generic
buf.put((byte) 0x01); // number attributes
@ -892,7 +892,7 @@ public class PebbleProtocol extends GBDeviceProtocol {
}
byte dismiss_action_id;
if (hasHandle) {
if (hasHandle && !"ALARMCLOCKRECEIVER".equals(sourceName)) {
actions_count = 3;
dismiss_string = "Dismiss";
dismiss_action_id = 0x02;
@ -979,7 +979,7 @@ public class PebbleProtocol extends GBDeviceProtocol {
buf.put(dismiss_string.getBytes());
// open and mute actions
if (hasHandle) {
if (hasHandle && !"ALARMCLOCKRECEIVER".equals(sourceName)) {
buf.put((byte) 0x01);
buf.put((byte) 0x02); // generic action
buf.put((byte) 0x01); // number attributes