Skip to content

Commit

Permalink
Address extension defaults to zero.
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph2 committed Feb 8, 2021
1 parent d68f16c commit 3274f56
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pya2l/api/inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ def __init__(self, session, name: str, module_name: str = None):
self.ecuAddressExtension = (
self.characteristic.ecu_address_extension.extension
if self.characteristic.ecu_address_extension
else None
else 0
)
self.extendedLimits = self._dissect_extended_limits(
self.characteristic.extended_limits
Expand Down Expand Up @@ -1247,7 +1247,7 @@ def __init__(self, session, name: str, module_name: str = None):
self.ecuAddressExtension = (
self.axis.ecu_address_extension.extension
if self.axis.ecu_address_extension
else None
else 0
)
self.extendedLimits = self._dissect_extended_limits(self.axis.extended_limits)
self.format = self.axis.format.formatString if self.axis.format else None
Expand Down Expand Up @@ -1449,7 +1449,7 @@ class Measurement(CachedBase):
ecuAddress: int or None
Address of the measurement in the memory of the CU.
ecuAddressExtension: int or None
ecuAddressExtension: int
Additional address information, e.g. paging.
errorMask: int or None
Expand Down Expand Up @@ -1649,7 +1649,7 @@ def __init__(self, session, name: str, module_name: str = None):
self.ecuAddressExtension = (
self.measurement.ecu_address_extension.extension
if self.measurement.ecu_address_extension
else None
else 0
)
self.errorMask = (
self.measurement.error_mask.mask if self.measurement.error_mask else None
Expand Down

0 comments on commit 3274f56

Please sign in to comment.