Commit 2e24df4a authored by Arnaud WATLET's avatar Arnaud WATLET
Browse files

updates ohmpi for voltage_adjustable

Showing with 2 additions and 2 deletions
+2 -2
......@@ -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}')
......
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