Skip to content

Commit

Permalink
Update sdr.py
Browse files Browse the repository at this point in the history
Updated TSFT002 parser - (battery) flags no longer duplicates transmit_s data
  • Loading branch information
Sar6e authored Feb 28, 2023
1 parent bdb14ac commit 7841023
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/user/sdr.py
Original file line number Diff line number Diff line change
Expand Up @@ -3087,7 +3087,7 @@ def parse_json(obj):
pkt['temperature'] = Packet.get_float(obj, 'temperature_C')
pkt['depth'] = Packet.get_float(obj, 'depth_cm')
pkt['transmit'] = Packet.get_float(obj, 'transmit_s')
pkt['flags'] = Packet.get_int(obj, 'transmit_s')
pkt['flags'] = Packet.get_int(obj, 'flags')
sensor_id = pkt.pop('id', '0000')
pkt = Packet.add_identifiers(pkt, sensor_id, TSFT002Packet.__name__)
return pkt
Expand Down

0 comments on commit 7841023

Please sign in to comment.