Commit f4a2deee authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Attempts to fix property issue in TxAbstract init

Showing with 2 additions and 2 deletions
+2 -2
...@@ -147,7 +147,7 @@ class Tx(TxAbstract): ...@@ -147,7 +147,7 @@ class Tx(TxAbstract):
self.exec_logger.warning(f'Current pulse is not implemented for the {TX_CONFIG["model"]} board') self.exec_logger.warning(f'Current pulse is not implemented for the {TX_CONFIG["model"]} board')
def inject(self, state='on'): def inject(self, state='on'):
super().inject(state=state) TxAbstract.inject(self, state=state)
if state=='on': if state=='on':
self.DPS.write_register(0x09, 1) # DPS5005 on self.DPS.write_register(0x09, 1) # DPS5005 on
else: else:
...@@ -159,7 +159,7 @@ class Tx(TxAbstract): ...@@ -159,7 +159,7 @@ class Tx(TxAbstract):
@polarity.setter @polarity.setter
def polarity(self, value): def polarity(self, value):
super().polarity = value TxAbstract.polarity.fset(self, value)
if value==1: if value==1:
self.pin0.value = True self.pin0.value = True
self.pin1.value = False self.pin1.value = False
......
Supports Markdown
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