From ddb59c24ff2f3e0475898bc5caadb33012c02151 Mon Sep 17 00:00:00 2001 From: "Christian W. Zuckschwerdt" Date: Sat, 11 Feb 2023 18:08:53 +0100 Subject: [PATCH] Revert support for Interlogix Smoke Detector and Pet Immune SAW PIR Motion Sensor (#2287) This reverts commit b605a3d2a7df02eae5e3405469e79810dfa0b7a3. --- src/devices/interlogix.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/devices/interlogix.c b/src/devices/interlogix.c index 76cf54d5..842cfe43 100644 --- a/src/devices/interlogix.c +++ b/src/devices/interlogix.c @@ -165,7 +165,6 @@ static int interlogix_decode(r_device *decoder, bitbuffer_t *bitbuffer) sprintf(device_type_id, "%01x", (reverse8(message[2]) >> 4)); switch ((reverse8(message[2]) >> 4)) { - case 0x2: device_type = "smoke"; break; //switch2 changes from closed to open on trigger and switch2 & switch4 change from closed to open on test case 0xa: device_type = "contact"; break; case 0xf: device_type = "keyfob"; break; case 0x4: device_type = "motion"; break; @@ -187,14 +186,6 @@ static int interlogix_decode(r_device *decoder, bitbuffer_t *bitbuffer) f3_latch_state = ((message[3] & 0xe) == 0xc) ? "CLOSED" : "OPEN"; f4_latch_state = ((message[3] & 0xe) == 0x2) ? "CLOSED" : "OPEN"; f5_latch_state = ((message[3] & 0xe) == 0xa) ? "CLOSED" : "OPEN"; - // PET Immune SAW PIR motion sensor logic. - } else if ((reverse8(message[2]) >> 4) == 0x4) { - low_battery = (message[3] & 0x10) ? 1 : 0; - f1_latch_state = ((message[3] & 0x04) | ((message[3] & 0x08) == 0x8)) ? "OPEN" : "CLOSED"; - f2_latch_state = (message[3] & 0x01) ? "OPEN" : "CLOSED"; - f3_latch_state = (message[4] & 0x40) ? "OPEN" : "CLOSED"; - f4_latch_state = (message[4] & 0x10) ? "OPEN" : "CLOSED"; - f5_latch_state = (message[4] & 0x04) ? "OPEN" : "CLOSED"; } else { low_battery = (message[3] & 0x10) ? 1 : 0; f1_latch_state = (message[3] & 0x04) ? "OPEN" : "CLOSED";