device: add one to feature count to count ROOT feature
This commit is contained in:
parent
3a0a9e04b0
commit
cdf3957180
|
@ -259,7 +259,7 @@ class FeaturesArray(dict):
|
||||||
_log.warn('FEATURE_SET found, but failed to read features count')
|
_log.warn('FEATURE_SET found, but failed to read features count')
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
self.count = ord(count[:1])
|
self.count = ord(count[:1]) + 1 # ROOT feature not included in count
|
||||||
self[FEATURE.ROOT] = 0
|
self[FEATURE.ROOT] = 0
|
||||||
self[FEATURE.FEATURE_SET] = fs_index
|
self[FEATURE.FEATURE_SET] = fs_index
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in New Issue