Fix off by one error

Oops, warning about too old python script came when it should not.
This commit is contained in:
sfromis 2021-05-12 23:20:16 +02:00 committed by Yves De Muyter
parent e631ab546e
commit 6987591714
1 changed files with 1 additions and 1 deletions

View File

@ -337,7 +337,7 @@ def StartDecode():
if "StatusMEM" in obj:
if "Features" in obj["StatusMEM"]:
features = []
maxfeatures = len(obj["StatusMEM"]["Features"])
maxfeatures = len(obj["StatusMEM"]["Features"]) - 1
if maxfeatures > len(a_features):
print("decode-status.py too old, does not support all feature bits")
maxfeatures = min(maxfeatures, len(a_features))