diff --git a/bin/user/WLLDriver.py b/bin/user/WLLDriver.py index 6d132dc..b06a8b4 100644 --- a/bin/user/WLLDriver.py +++ b/bin/user/WLLDriver.py @@ -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']: @@ -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']