diff --git a/CHANGELOG.md b/CHANGELOG.md index 4bd977c..12bb9cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +- add int64 data type to info parser + ## [0.5.1] - 2023-11-05 - fixes f-string by limes007 diff --git a/app/src/infos.py b/app/src/infos.py index b53f335..16a429f 100644 --- a/app/src/infos.py +++ b/app/src/infos.py @@ -341,6 +341,9 @@ class Infos: elif data_type == 0x46: # 'F' -> float32 result = round(struct.unpack_from('!f', buf, ind)[0], 2) ind += 4 + elif data_type == 0x4c: # 'L' -> int64 + result = struct.unpack_from('!q', buf, ind)[0] + ind += 8 else: self.inc_counter('Invalid_Data_Type') logging.error(f"Infos.parse: data_type: {data_type}"