summaryrefslogtreecommitdiff
path: root/ui/control_panel.py
diff options
context:
space:
mode:
Diffstat (limited to 'ui/control_panel.py')
-rw-r--r--ui/control_panel.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/ui/control_panel.py b/ui/control_panel.py
index dafeabf..f008853 100644
--- a/ui/control_panel.py
+++ b/ui/control_panel.py
@@ -160,7 +160,7 @@ class ControlWidget(QFrame):
if dev is None:
stale = True
else:
- ch = dev.get_channel(self.channel_id)
+ ch = dev.get_signal(self.channel_id)
if ch is None or not ch.enabled:
stale = True
elif dev.status not in (DeviceStatus.CONNECTED, DeviceStatus.SIMULATED):
@@ -225,8 +225,7 @@ class ControlWidget(QFrame):
Write value to the linked device channel.
Routing:
- DigitalIODevice → write_channel() → ArduinoLayer.digital_write() → W:Dxx:val
- AnalogInputDevice (arduino backend) → write_channel() → ArduinoLayer.digital_write()
+ ArduinoDevice (do* signal) → write_channel() → ArduinoLayer.digital_write() → W:Dxx:val
Any device with no write support → logs a warning, emits signal only
The actual write is dispatched to a background worker (_enqueue_write)
@@ -238,7 +237,7 @@ class ControlWidget(QFrame):
if self.registry and self.device_id and self.channel_id:
dev = self.registry.get_instance(self.device_id)
if dev:
- ch = dev.get_channel(self.channel_id)
+ ch = dev.get_signal(self.channel_id)
if ch is not None and not ch.enabled:
print(f"[Control] write_channel({self.channel_id}, {value}) skipped on "
f"{self.device_id} — channel is disabled")