Skip to content

Commit

Permalink
Merge pull request #27 from Drealine/development
Browse files Browse the repository at this point in the history
2022.02.27-1
  • Loading branch information
Drealine authored Feb 27, 2022
2 parents 650411b + 04a7c46 commit ac836ae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/user/WLLDriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,8 @@ def data_decode_wl(self, data, start_timestamp, end_timestamp):
if q['sensor_type'] == 242:
for pk_sensor in q['data']:
if pk_sensor['ts'] == start_timestamp:
wl_packet['altimeter'] = pk_sensor['bar_sea_level']
wl_packet['pressure'] = pk_sensor['bar_absolute']
wl_packet['altimeter'] = pk_sensor['bar_absolute']
wl_packet['pressure'] = pk_sensor['bar_sea_level']

if q['sensor_type'] == 243:
for pk_sensor in q['data']:
Expand Down Expand Up @@ -587,8 +587,8 @@ def data_decode_wll(self, data, type_of_packet):

# Next lines are not extra, so no need ID
if s['data_structure_type'] == 3:
wll_packet['altimeter'] = s['bar_sea_level']
wll_packet['pressure'] = s['bar_absolute']
wll_packet['altimeter'] = s['bar_absolute']
wll_packet['pressure'] = s['bar_sea_level']

if s['data_structure_type'] == 4:
wll_packet['inTemp'] = s['temp_in']
Expand Down

0 comments on commit ac836ae

Please sign in to comment.