From 922d2b16195abcd3c93809a6ce103b2b5e13bd36 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 19 Mar 2022 22:58:31 +0800 Subject: [PATCH] drop support for big-endian moninj --- artiq/coredevice/comm_moninj.py | 21 ++++++--------------- artiq/firmware/runtime/moninj.rs | 1 - artiq/frontend/aqctl_moninj_proxy.py | 1 - 3 files changed, 6 insertions(+), 17 deletions(-) diff --git a/artiq/coredevice/comm_moninj.py b/artiq/coredevice/comm_moninj.py index d25da82e8..a6b95983e 100644 --- a/artiq/coredevice/comm_moninj.py +++ b/artiq/coredevice/comm_moninj.py @@ -33,14 +33,6 @@ class CommMonInj: try: self._writer.write(b"ARTIQ moninj\n") - # get device endian - endian = await self._reader.read(1) - if endian == b"e": - self.endian = "<" - elif endian == b"E": - self.endian = ">" - else: - raise IOError("Incorrect reply from device: expected e/E.") self._receive_task = asyncio.ensure_future(self._receive_cr()) except: self._writer.close() @@ -62,19 +54,19 @@ class CommMonInj: del self._writer def monitor_probe(self, enable, channel, probe): - packet = struct.pack(self.endian + "bblb", 0, enable, channel, probe) + packet = struct.pack("