From 85ede001e8d62edd250c33d2b68138c7e36f2173 Mon Sep 17 00:00:00 2001 From: foamyguy Date: Fri, 17 Jan 2025 15:37:25 -0600 Subject: [PATCH] last_saved_filename property --- adafruit_pycamera/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/adafruit_pycamera/__init__.py b/adafruit_pycamera/__init__.py index 32d8e14..1ef4c94 100644 --- a/adafruit_pycamera/__init__.py +++ b/adafruit_pycamera/__init__.py @@ -946,6 +946,13 @@ def blit_overlay_into_last_capture(self): del cc565_swapped gc.collect() + @property + def last_saved_filename(self) -> str: + """ + The filename of the last image saved. + """ + return self._last_saved_image_filename + def continuous_capture_start(self): """Switch the camera to continuous-capture mode""" pass # pylint: disable=unnecessary-pass