mirror of https://github.com/arendst/Tasmota.git
Fix off by one error
Oops, warning about too old python script came when it should not.
This commit is contained in:
parent
ae6b81b047
commit
4e7c991f3d
|
@ -337,7 +337,7 @@ def StartDecode():
|
||||||
if "StatusMEM" in obj:
|
if "StatusMEM" in obj:
|
||||||
if "Features" in obj["StatusMEM"]:
|
if "Features" in obj["StatusMEM"]:
|
||||||
features = []
|
features = []
|
||||||
maxfeatures = len(obj["StatusMEM"]["Features"])
|
maxfeatures = len(obj["StatusMEM"]["Features"]) - 1
|
||||||
if maxfeatures > len(a_features):
|
if maxfeatures > len(a_features):
|
||||||
print("decode-status.py too old, does not support all feature bits")
|
print("decode-status.py too old, does not support all feature bits")
|
||||||
maxfeatures = min(maxfeatures, len(a_features))
|
maxfeatures = min(maxfeatures, len(a_features))
|
||||||
|
|
Loading…
Reference in New Issue