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 GitHub
parent ae6b81b047
commit 4e7c991f3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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))