Skip to content

Commit

Permalink
Merge pull request #21 from Drealine/development
Browse files Browse the repository at this point in the history
Update wrong value from pressure
  • Loading branch information
Drealine authored Dec 3, 2020
2 parents 423adb8 + 0909be3 commit b406475
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,7 +435,7 @@ 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_sea_level']
wl_packet['pressure'] = pk_sensor['bar_absolute']

if q['sensor_type'] == 243:
Expand Down Expand Up @@ -587,7 +587,7 @@ 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_sea_level']
wll_packet['pressure'] = s['bar_absolute']

if s['data_structure_type'] == 4:
Expand Down

0 comments on commit b406475

Please sign in to comment.