Skip to content

Commit

Permalink
Add QRFDEBUG response to valid_packet
Browse files Browse the repository at this point in the history
Add the QRFDEBUG response to the `valid_packet` function.
  • Loading branch information
javicalle authored and Johan Bloemberg committed Jun 9, 2019
1 parent 0976cfc commit 923b520
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rflink/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,17 @@
PACKET_RFDEBUGF = DELIM.join(['20', SEQUENCE, 'RFDEBUG=OFF'])
PACKET_RFUDEBUGN = DELIM.join(['20', SEQUENCE, 'RFUDEBUG=ON'])
PACKET_RFUDEBUGF = DELIM.join(['20', SEQUENCE, 'RFUDEBUG=OFF'])
PACKET_QRFDEBUGN = DELIM.join(['20', SEQUENCE, 'QRFDEBUG=ON'])
PACKET_QRFDEBUGF = DELIM.join(['20', SEQUENCE, 'QRFDEBUG=OFF'])

# 11;20;0B;NewKaku;ID=000005;SWITCH=2;CMD=ON;
PACKET_DEVICE_CREATE = '11;' + PACKET_DEVICE

PACKET_HEADER_RE = '^(' + '|'.join(
[PACKET_VERSION, PACKET_DEVICE_CREATE, PACKET_RESPONSE, PACKET_DEVICE,
PACKET_COMMAND, PACKET_COMMAND2, PACKET_COMMAND3, PACKET_COMMAND4, PACKET_CONTROL,
PACKET_DEBUG, PACKET_RFDEBUGN, PACKET_RFUDEBUGN, PACKET_RFDEBUGF, PACKET_RFUDEBUGF ]) + ');$'
PACKET_DEBUG, PACKET_RFDEBUGN, PACKET_RFUDEBUGN, PACKET_RFDEBUGF, PACKET_RFUDEBUGF,
PACKET_QRFDEBUGN, PACKET_QRFDEBUGF]) + ');$'
packet_header_re = re.compile(PACKET_HEADER_RE)


Expand Down

0 comments on commit 923b520

Please sign in to comment.