mainloop
"""
- # BUILD_HAT_PORT - the port on the Build HAT to which the
+ # DEVICE_PORT - the port on the Build HAT to which the
# motor is connected.
- if name == "BUILD_HAT_PORT":
+ if name == "DEVICE_PORT":
try:
port = self.IUUpdate(device, name, names, values)
port.state='Ok'
port["PORT"].value = port["PORT"].value.strip()
self.IDSet(port)
except Exception as error:
- self.IDMessage(f"BUILD_HAT_PORT error: {error}")
+ self.IDMessage(f"DEVICE_PORT error: {error}")
self.IUUpdate(device, name, names, values, Set=True)
</defSwitch>
</defSwitchVector>
-<defTextVector device="LegoFocuser" name="BUILD_HAT_PORT" label="HAT Port" group="Main Control" state="Idle" perm="rw" timeout="60">
+<defTextVector device="LegoFocuser" name="DEVICE_PORT" label="HAT Port" group="Main Control" state="Idle" perm="rw" timeout="60">
<defText name="PORT" label="Port">
A
</defText>