From 178f3cd815c1b695f8fc8c75ed6074f11db7030e Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 25 Nov 2015 15:28:34 +0800 Subject: [PATCH] devices/thorlabs_tcube: improve debug logging --- artiq/devices/thorlabs_tcube/driver.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/artiq/devices/thorlabs_tcube/driver.py b/artiq/devices/thorlabs_tcube/driver.py index a9c9d47fc..8b0212c78 100644 --- a/artiq/devices/thorlabs_tcube/driver.py +++ b/artiq/devices/thorlabs_tcube/driver.py @@ -142,6 +142,12 @@ class Message: self.src = src self.data = data + def __str__(self): + return ("".format( + self.id, self.param1, self.param2, + self.dest, self.src)) + @staticmethod def unpack(data): id, param1, param2, dest, src = st.unpack("