From 5c64eac8d2dfbb2a62661797cddf395b761b5ed6 Mon Sep 17 00:00:00 2001 From: occheung Date: Mon, 18 Sep 2023 20:01:44 -0700 Subject: [PATCH] relay: fix naming --- artiq/coredevice/shuttler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artiq/coredevice/shuttler.py b/artiq/coredevice/shuttler.py index 43809b2b8..358522eac 100644 --- a/artiq/coredevice/shuttler.py +++ b/artiq/coredevice/shuttler.py @@ -169,8 +169,8 @@ class Relay: RELAY_SPI_CONFIG, 16, SPIT_RELAY_WR, CS_RELAY | CS_LED) @kernel - def set_led(self, leds: TInt32): - self.bus.write(leds << 16) + def enable(self, en: TInt32): + self.bus.write(en << 16) class ADC: