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