From 3c64e95052de99dff2098f00abf1db5bbf73a46f Mon Sep 17 00:00:00 2001 From: Scott Petersen Date: Tue, 15 Nov 2016 12:09:43 -0800 Subject: [PATCH] Added support for cursor locations with DSC panels. --- alarmdecoder/messages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alarmdecoder/messages.py b/alarmdecoder/messages.py index 7de27d9..0e07d40 100644 --- a/alarmdecoder/messages.py +++ b/alarmdecoder/messages.py @@ -171,7 +171,7 @@ class Message(BaseMessage): self.text = alpha.strip('"') self.mask = int(self.panel_data[3:3+8], 16) - if self.panel_type == ADEMCO: + if self.panel_type in (ADEMCO, DSC): if int(self.panel_data[19:21], 16) & 0x01 > 0: # Current cursor location on the alpha display. self.cursor_location = int(self.panel_data[21:23], 16)