device: add one to feature count to count ROOT feature

This commit is contained in:
Peter F. Patel-Schneider 2022-09-25 03:46:20 -04:00
parent 3a0a9e04b0
commit cdf3957180
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ class FeaturesArray(dict):
_log.warn('FEATURE_SET found, but failed to read features count')
return False
else:
self.count = ord(count[:1])
self.count = ord(count[:1]) + 1 # ROOT feature not included in count
self[FEATURE.ROOT] = 0
self[FEATURE.FEATURE_SET] = fs_index
return True