From 0ba87dcd3a0cd385caa8e89add519f4094a5a457 Mon Sep 17 00:00:00 2001 From: CPD Date: Wed, 12 Mar 2025 16:44:21 +0100 Subject: [PATCH] Revert "Log device errors on init" This reverts commit 81641272ee5a7260b53550435100cf2bd60dd71d. --- cpdctrl/led_control_device/impl/thorlabs_dc2200.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cpdctrl/led_control_device/impl/thorlabs_dc2200.py b/cpdctrl/led_control_device/impl/thorlabs_dc2200.py index 83222fc..dd0b249 100644 --- a/cpdctrl/led_control_device/impl/thorlabs_dc2200.py +++ b/cpdctrl/led_control_device/impl/thorlabs_dc2200.py @@ -27,10 +27,7 @@ class DC2200(LedControlDevice): # turn off self.instr.write(f'SOURCE1:CBRightness:BRIGhtness 0') self.instr.write('OUTPUT1:STATE ON') - for _ in range(10): # print max 10 errors - error = self.instr.query('SYSTem:ERRor?') - if error.startswith('+0'): break - log.error(f"DC2200 device error during initialization: {error}") + def on(self): self.instr.write(f'SOURCE1:CBRightness:BRIGhtness 100')