From 1ce505c547eec422778a0964f4a4690fe5846bdc Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 8 Dec 2020 13:25:39 +0800 Subject: [PATCH] coredevice: remove obsolete watchdog code (#1458) --- artiq/coredevice/comm_kernel.py | 3 --- artiq/coredevice/exceptions.py | 4 ---- 2 files changed, 7 deletions(-) diff --git a/artiq/coredevice/comm_kernel.py b/artiq/coredevice/comm_kernel.py index 98211d592..5387b9d10 100644 --- a/artiq/coredevice/comm_kernel.py +++ b/artiq/coredevice/comm_kernel.py @@ -36,7 +36,6 @@ class Reply(Enum): RPCRequest = 10 - WatchdogExpired = 14 ClockFailure = 15 @@ -627,8 +626,6 @@ class CommKernel: self._serve_rpc(embedding_map) elif self._read_type == Reply.KernelException: self._serve_exception(embedding_map, symbolizer, demangler) - elif self._read_type == Reply.WatchdogExpired: - raise exceptions.WatchdogExpired elif self._read_type == Reply.ClockFailure: raise exceptions.ClockFailure else: diff --git a/artiq/coredevice/exceptions.py b/artiq/coredevice/exceptions.py index 8260739d2..cfa2ce85a 100644 --- a/artiq/coredevice/exceptions.py +++ b/artiq/coredevice/exceptions.py @@ -104,10 +104,6 @@ class DMAError(Exception): artiq_builtin = True -class WatchdogExpired(Exception): - """Raised when a watchdog expires.""" - - class ClockFailure(Exception): """Raised when RTIO PLL has lost lock."""