Commit 47e69463 authored by Alexander Schrode's avatar Alexander Schrode Committed by oroulet

fix bit access

parent 295d810c
......@@ -100,7 +100,7 @@ class {self.name}:
code += f"""
@property
def {name}(self) -> bool:
return self.{src_field} >> {bit_no} != 0
return (self.{src_field} & (1<<{bit_no})) != 0
@{name}.setter
def {name}(self, value: bool) -> None:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment