summaryrefslogtreecommitdiff
path: root/decoders/lin/pd.py
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/lin/pd.py')
-rw-r--r--decoders/lin/pd.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/decoders/lin/pd.py b/decoders/lin/pd.py
index d1c1481..e82acf4 100644
--- a/decoders/lin/pd.py
+++ b/decoders/lin/pd.py
@@ -37,10 +37,7 @@ class LinFsm:
def _transition_allowed(self, target_state):
if target_state == LinFsm.State.Error:
return True
- for s in self.allowed_state[self.state]:
- if s == target_state:
- return True
- return False
+ return target_state in self.allowed_state[self.state]
def reset(self):
self.state = LinFsm.State.WaitForBreak