mirror of
https://github.com/merbanan/rtl_433.git
synced 2026-05-19 15:25:30 -04:00
Revert support for Interlogix Smoke Detector and Pet Immune SAW PIR Motion Sensor (#2287)
This reverts commit b605a3d2a7.
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user