From eb7f2e3eb1f0d2de1abe373d9528414d5607d81e Mon Sep 17 00:00:00 2001 From: flarn2006 Date: Mon, 28 Jan 2019 06:07:06 -0500 Subject: [PATCH] feat: add more descriptive titles --- config_rpt_util.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/config_rpt_util.py b/config_rpt_util.py index d35b7cb..421e9df 100644 --- a/config_rpt_util.py +++ b/config_rpt_util.py @@ -32,14 +32,18 @@ def int16(offset): name = 'Communicator {}'.format(int16(2) + 1) elif cmd == 0xCA: name = 'Account {}'.format(arg[1] + 1) + elif cmd == 0xCB: + name = 'Keypad {}.{}'.format(arg[1] + 1, arg[2] + 1) elif cmd == 0xCC: name = 'Alarm Output' elif cmd == 0xCE: name = 'Output {}.{}'.format(int16(2), int16(4) + 1) + elif cmd == 0xCF: + name = 'Area {}.{}'.format(arg[1] + 1, arg[2] + 1) elif cmd == 0xD0: - name = 'User {}'.format(int16(2) + 1) + name = 'User {}.{}'.format(arg[1] + 1, int16(2) + 1) elif cmd == 0xD1: - name = 'Zone {}'.format(arg[3] + 1) + name = 'Zone {}.{}.{}'.format(arg[1] + 1, arg[2] + 1, arg[3] + 1) elif cmd == 0xD3: name = 'Device {0} (0x{0:04X})'.format(int16(18)) elif cmd == 0xD5: