Skip to content

Commit

Permalink
2022.02.27-2
Browse files Browse the repository at this point in the history
Additionnal change from version 2022.02.27-1
  • Loading branch information
Drealine authored Feb 27, 2022
2 parents ac836ae + 8be405c commit 2fc1842
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 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['barometer'] = pk_sensor['bar_sea_level']
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['barometer'] = s['bar_sea_level']
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 2fc1842

Please sign in to comment.