settings: fix determination of whether to read before writing boolean setting

This commit is contained in:
Peter F. Patel-Schneider 2022-04-12 16:36:45 -04:00
parent 39ec9337a2
commit 3ca97cccd1
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ class BooleanValidator(Validator):
assert tv != fv # true and false might be something other than bit values
assert tv & mv == tv
assert fv & mv == fv
self.needs_current_value = any(m != b'\xFF' for m in mask)
self.needs_current_value = any(m != 0xff for m in mask)
else:
raise Exception("invalid mask '%r', type %s" % (mask, type(mask)))