From 04a7c460e552ceb3510c9d5d4221c82fa7925531 Mon Sep 17 00:00:00 2001 From: Drealine <61891683+Drealine@users.noreply.github.com> Date: Sun, 27 Feb 2022 15:30:31 +0100 Subject: [PATCH] 2022.02.27-1 Invert mapping value due to a coding error. Pressure is not good when station is in altitude. --- bin/user/WLLDriver.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/user/WLLDriver.py b/bin/user/WLLDriver.py index 11a5938..6d132dc 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['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']: @@ -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']