Skip to content

Commit 9bad91a

Browse files
committed
oops again
1 parent 21157ea commit 9bad91a

File tree

1 file changed

+2
-3
lines changed
  • software/glasgow/applet/interface/gpib_controller

1 file changed

+2
-3
lines changed

software/glasgow/applet/interface/gpib_controller/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,6 @@ def build(self, target, args):
399399
def add_run_arguments(cls, parser, access):
400400
super().add_run_arguments(parser, access)
401401

402-
403402
async def run(self, device, args):
404403
iface = await device.demultiplexer.claim_interface(self, self.mux_interface, args)
405404
gpib_interface = GPIBControllerInterface(
@@ -437,8 +436,8 @@ async def interact(self, device, args, iface):
437436
await iface.write(GPIBMessage.Command, bytes([GPIBCommand.UNT.value]))
438437

439438
if args.read_eoi:
440-
await gpib.write(GPIBMessage.Command, bytes([GPIBCommand.MLA.value | args.address]))
441-
async for data in gpib.read(True):
439+
await iface.write(GPIBMessage.Command, bytes([GPIBCommand.MLA.value | args.address]))
440+
async for data in iface.read(True):
442441
sys.stdout.buffer.write(data)
443442
sys.stdout.buffer.flush()
444443

0 commit comments

Comments
 (0)