From 2e24df4affee74b0b9c81e8910d7b7faf835472d Mon Sep 17 00:00:00 2001 From: Arnaud Watlet <arnaud.watlet@umons.ac.be> Date: Tue, 12 Dec 2023 15:54:34 +0100 Subject: [PATCH] updates ohmpi for voltage_adjustable --- ohmpi/ohmpi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ohmpi/ohmpi.py b/ohmpi/ohmpi.py index acc866ad..8e479a68 100644 --- a/ohmpi/ohmpi.py +++ b/ohmpi/ohmpi.py @@ -499,7 +499,7 @@ class OhmPi(object): """ # check pwr is on, if not, let's turn it on switch_power_off = False - if self.tx.pwr.voltage_adjustable and self._hw.pwr_state == 'off': + if self._hw.tx.pwr.voltage_adjustable and self._hw.pwr_state == 'off': self._hw.pwr_state = 'on' switch_power_off = True @@ -688,7 +688,7 @@ class OhmPi(object): fw_in_zip = self.settings['fw_in_zip'] # switch power on - if self.tx.pwr.voltage_adjustable: + if self._hw.tx.pwr.voltage_adjustable: self._hw.pwr_state = 'on' self.status = 'running' self.exec_logger.debug(f'Status: {self.status}') -- GitLab