Skip to content

Commit

Permalink
feat: add more descriptive titles
Browse files Browse the repository at this point in the history
  • Loading branch information
flarn2006 committed Jan 28, 2019
1 parent d52faa8 commit eb7f2e3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions config_rpt_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit eb7f2e3

Please sign in to comment.