fix: bugfix

This commit is contained in:
appel_c 2023-11-13 13:45:23 +01:00
parent 3e1a2b86c3
commit 7fefb44462

View File

@ -1,6 +1,7 @@
import enum import enum
import os import os
from abc import ABC, abstractmethod from abc import ABC, abstractmethod
from typing import List
from ophyd import Device from ophyd import Device
from ophyd.device import Staged from ophyd.device import Staged
@ -282,7 +283,7 @@ class SLSDetectorBase(ABC, Device):
""" """
# Method idempotent, should rais ;obj;'RedudantStaging' if staged twice # Method idempotent, should rais ;obj;'RedudantStaging' if staged twice
if self._staged == Staged.yes: if self._staged != Staged.no:
return super().stage() return super().stage()
else: else:
# Reset flag for detector stopped # Reset flag for detector stopped