Skip to content

Commit 923b520

Browse files
javicalleaequitas
authored andcommitted
Add QRFDEBUG response to valid_packet
Add the QRFDEBUG response to the `valid_packet` function.
1 parent 0976cfc commit 923b520

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

rflink/parser.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,17 @@
5656
PACKET_RFDEBUGF = DELIM.join(['20', SEQUENCE, 'RFDEBUG=OFF'])
5757
PACKET_RFUDEBUGN = DELIM.join(['20', SEQUENCE, 'RFUDEBUG=ON'])
5858
PACKET_RFUDEBUGF = DELIM.join(['20', SEQUENCE, 'RFUDEBUG=OFF'])
59+
PACKET_QRFDEBUGN = DELIM.join(['20', SEQUENCE, 'QRFDEBUG=ON'])
60+
PACKET_QRFDEBUGF = DELIM.join(['20', SEQUENCE, 'QRFDEBUG=OFF'])
5961

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

6365
PACKET_HEADER_RE = '^(' + '|'.join(
6466
[PACKET_VERSION, PACKET_DEVICE_CREATE, PACKET_RESPONSE, PACKET_DEVICE,
6567
PACKET_COMMAND, PACKET_COMMAND2, PACKET_COMMAND3, PACKET_COMMAND4, PACKET_CONTROL,
66-
PACKET_DEBUG, PACKET_RFDEBUGN, PACKET_RFUDEBUGN, PACKET_RFDEBUGF, PACKET_RFUDEBUGF ]) + ');$'
68+
PACKET_DEBUG, PACKET_RFDEBUGN, PACKET_RFUDEBUGN, PACKET_RFDEBUGF, PACKET_RFUDEBUGF,
69+
PACKET_QRFDEBUGN, PACKET_QRFDEBUGF]) + ');$'
6770
packet_header_re = re.compile(PACKET_HEADER_RE)
6871

6972

0 commit comments

Comments
 (0)