Skip to content

Commit

Permalink
Correct RFUDEBUG and add QRFDEBUG packet
Browse files Browse the repository at this point in the history
Small PR to correct an typo with RFUDEBUG and add the QRFDEBUG 'protocol'.

Maybe also PING protocol can be added here.

May it be necessary to control the response in the `decode_packet` function?
  • Loading branch information
javicalle authored and Johan Bloemberg committed Jun 8, 2019
1 parent c78aec5 commit 0976cfc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rflink/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,9 @@ def encode_packet(packet: dict) -> str:
if packet['protocol'] == 'rfdebug':
return '10;RFDEBUG=' + packet['command'] + ';'
elif packet['protocol'] == 'rfudebug':
return '10;RFDEBUG=' + packet['command'] + ';'
return '10;RFUDEBUG=' + packet['command'] + ';'
elif packet['protocol'] == 'qrfdebug':
return '10;QRFDEBUG=' + packet['command'] + ';'
else:
return SWITCH_COMMAND_TEMPLATE.format(
node=PacketHeader.master.value,
Expand Down

0 comments on commit 0976cfc

Please sign in to comment.