Skip to content

Commit

Permalink
Ignore values for parameter type 0xD400
Browse files Browse the repository at this point in the history
Possible fix for Julius2342#25
  • Loading branch information
madzrobz authored Jun 3, 2019
1 parent e606321 commit 2198f56
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyvlx/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class Parameter():

UNKNOWN_VALUE = 63487 # F7 FF
CURRENT_POSITION = 53760 # D2 00
IGNORE = 54272 # D4 00
MAX = 51200 # C8 00
MIN = 0 # 00 00
ON = 0 # 00 00
Expand All @@ -15,7 +16,7 @@ class Parameter():
def __init__(self, raw=None):
"""Initialize Parameter class."""
self.raw = self.from_int(Position.UNKNOWN_VALUE)
if raw is not None:
if raw is not None and raw != Position.IGNORE:
self.raw = self.from_raw(raw)

def from_parameter(self, parameter):
Expand Down

0 comments on commit 2198f56

Please sign in to comment.