From 17e8bfc49e9f67a71dcb88c687db31ad55f1d8c1 Mon Sep 17 00:00:00 2001 From: Martin Teichmann <martin.teichmann@xfel.eu> Date: Thu, 7 Sep 2023 11:52:46 +0200 Subject: [PATCH] fix eeprom setting, free address not sure whether this is the way to go, but at least it works --- ebpfcat/scripts.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ebpfcat/scripts.py b/ebpfcat/scripts.py index 035a999..13d030c 100644 --- a/ebpfcat/scripts.py +++ b/ebpfcat/scripts.py @@ -124,7 +124,12 @@ async def eeprom(): else: # former terminal: don't listen! # this does not work with all terminals, dunno why - await ec.roundtrip(ECCmd.FPRW, 7, 0x10, "H", 0) + try: + await ec.roundtrip(ECCmd.FPRW, 7, 0x10, "H", 0) + except EtherCatError: + print('fine: no not used yet') + else: + print('had to silence former listener') terminals = [args.terminal] t = Terminal(ec) -- GitLab