mirror of
https://github.com/bec-project/ophyd_devices.git
synced 2025-05-30 08:30:41 +02:00
fix: bugfix
This commit is contained in:
parent
3e1a2b86c3
commit
7fefb44462
@ -1,6 +1,7 @@
|
||||
import enum
|
||||
import os
|
||||
from abc import ABC, abstractmethod
|
||||
from typing import List
|
||||
|
||||
from ophyd import Device
|
||||
from ophyd.device import Staged
|
||||
@ -282,7 +283,7 @@ class SLSDetectorBase(ABC, Device):
|
||||
|
||||
"""
|
||||
# Method idempotent, should rais ;obj;'RedudantStaging' if staged twice
|
||||
if self._staged == Staged.yes:
|
||||
if self._staged != Staged.no:
|
||||
return super().stage()
|
||||
else:
|
||||
# Reset flag for detector stopped
|
||||
|
Loading…
x
Reference in New Issue
Block a user