reinstate capture_to_memory and save_from_memory as actions

This commit is contained in:
Julian Stirling 2026-06-03 17:36:48 +01:00
parent 9dbdad4f8c
commit fa21224eaa

View file

@ -617,6 +617,7 @@ class BaseCamera(OFMThing, ABC):
buffer_id = self.capture_to_memory(capture_mode=capture_mode)
self.save_from_memory(path=path, buffer_id=buffer_id)
@lt.action
def capture_to_memory(
self, capture_mode: str = "standard", buffer_max: int = 1, max_attempts: int = 5
) -> int:
@ -654,6 +655,7 @@ class BaseCamera(OFMThing, ABC):
image, ofm_metadata, capture_mode, buffer_max=buffer_max
)
@lt.action
def save_from_memory(
self,
path: RelativeDataPath,