Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions power-service/stingray_power.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class GPIOS:
PWR_UP_DOWN_PIN = 5

def get_device(self, dev_label):
devices = os.popen('grep "" /sys/bus/iio/devices/iio\:device*/label').read()
devices = os.popen('grep "" /sys/bus/iio/devices/iio:device*/label').read()
devices = devices.split(sep="\n")
for line in devices:
if dev_label in line:
Expand Down Expand Up @@ -283,7 +283,7 @@ def partially_powered(self):

# If Rev.A, there's no way to check on the rails directly, we have to rely on SPI readback
if self._revision == 'A':
devices = os.popen('grep "" /sys/bus/iio/devices/iio\:device*/name').read()
devices = os.popen('grep "" /sys/bus/iio/devices/iio:device*/name').read()
devices = devices.split(sep="\n")
for line in devices:
if 'adar1000' in line:
Expand All @@ -306,7 +306,7 @@ def fully_powered(self):
return bool(self.partially_powered() & self._ltc.p5v_enable() & self._ltc.p5v_power_good())

def get_devices(self):
devices = os.popen('grep "" /sys/bus/iio/devices/iio\:device*/name').read()
devices = os.popen('grep "" /sys/bus/iio/devices/iio:device*/name').read()
devices = devices.split(sep="\n")
for line in devices:
if 'adar1000' in line:
Expand Down
Loading