From 42fd7bcbf8ae86246295ad75c431786993cda10f Mon Sep 17 00:00:00 2001 From: mlradu Date: Thu, 26 Mar 2026 15:09:51 +0200 Subject: [PATCH] power-service/stingray_power.py: Remove escape in IIO device path Signed-off-by: mlradu --- power-service/stingray_power.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/power-service/stingray_power.py b/power-service/stingray_power.py index 70fa24e..8147f90 100755 --- a/power-service/stingray_power.py +++ b/power-service/stingray_power.py @@ -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: @@ -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: @@ -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: