Loading noctua/devices/atik.py +6 −3 Original line number Diff line number Diff line Loading @@ -53,17 +53,20 @@ class Camera(BaseDevice): self._lib.ArtemisConnect.restype = ctypes.c_void_p self._lib.ArtemisImageBuffer.restype = ctypes.c_void_p self._lib.ArtemisExposureTimeRemaining.restype = ctypes.c_float self.count = self._lib.ArtemisDeviceCount() log.debug(f"SDK reported {self.count} devices.") except Exception as e: log.error(f"Atik SDK load failed: {e}") def _check_connection(self): """Internal method to manage the persistent camera handle.""" if self._handle is None and self._lib: count = self._lib.ArtemisDeviceCount() log.debug(f"SDK reported {count} devices.") log.debug(f"SDK reported {self.count} devices.") if count > 0: if self.count > 0: self._handle = self._lib.ArtemisConnect(0) if self._handle: self._lib.ArtemisProperties(self._handle, ctypes.byref(self._props)) Loading Loading
noctua/devices/atik.py +6 −3 Original line number Diff line number Diff line Loading @@ -53,17 +53,20 @@ class Camera(BaseDevice): self._lib.ArtemisConnect.restype = ctypes.c_void_p self._lib.ArtemisImageBuffer.restype = ctypes.c_void_p self._lib.ArtemisExposureTimeRemaining.restype = ctypes.c_float self.count = self._lib.ArtemisDeviceCount() log.debug(f"SDK reported {self.count} devices.") except Exception as e: log.error(f"Atik SDK load failed: {e}") def _check_connection(self): """Internal method to manage the persistent camera handle.""" if self._handle is None and self._lib: count = self._lib.ArtemisDeviceCount() log.debug(f"SDK reported {count} devices.") log.debug(f"SDK reported {self.count} devices.") if count > 0: if self.count > 0: self._handle = self._lib.ArtemisConnect(0) if self._handle: self._lib.ArtemisProperties(self._handle, ctypes.byref(self._props)) Loading