Fix issues with RS41 subtypes.

pull/261/head
Mark Jessop 2019-12-22 21:43:16 +10:30
rodzic bc193b1314
commit 8fcd382405
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -17,7 +17,7 @@ except ImportError:
# MINOR - New sonde type support, other fairly big changes that may result in telemetry or config file incompatability issus.
# PATCH - Small changes, or minor feature additions.
__version__ = "1.3.0-beta1"
__version__ = "1.3.0-beta2"
# Global Variables

Wyświetl plik

@ -795,7 +795,7 @@ class SondeDecoder(object):
# Add in the sonde type field.
if 'subtype' in _telemetry:
if self.sonde_freq == 'RS41':
if self.sonde_type == 'RS41':
# For RS41 sondes, we are provided with a more specific subtype string (RS41-SG, RS41-SGP, RS41-SGM)
# in the subtype field, so we can use this directly.
_telemetry['type'] = _telemetry['subtype']