Commit edd2a67c authored by Arnaud WATLET's avatar Arnaud WATLET
Browse files

adds ohmpi_measure led

Showing with 7 additions and 1 deletion
+7 -1
......@@ -491,10 +491,15 @@ class OhmPiHardware:
if self.pwr_state == 'off':
self.pwr_state = 'on'
switch_tx_pwr_off = True
# Switches on measuring LED
self.tx.measuring = 'on'
self.tx.voltage = vab
if self.tx.pwr.pwr_state == 'off':
self.tx.pwr.pwr_state = 'on'
switch_pwr_off = True
if 1. / self.rx.sampling_rate > pulse_duration:
sampling_rate = 1. / pulse_duration # TODO: check this...
else:
......@@ -611,7 +616,8 @@ class OhmPiHardware:
switch_tx_pwr_off = True
#Switches on measuring LED
self.tx.measuring = 'on'
if self.tx.measuring == 'off':
self.tx.measuring = 'on'
if self.tx.pwr.pwr_state == 'off':
self.tx.pwr.pwr_state = 'on'
......
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