We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7330a17 commit ced9af2Copy full SHA for ced9af2
1 file changed
internal_filesystem/apps/com.micropythonos.camera/assets/camera.py
@@ -13,6 +13,7 @@
13
print(f"Info: could not import webcam module: {e}")
14
15
from mpos.apps import Activity
16
+import mpos.time
17
18
class Camera(Activity):
19
@@ -176,7 +177,7 @@ def snap_button_click(self, e):
176
177
except OSError:
178
pass
179
if self.current_cam_buffer is not None:
- filename="data/images/camera_capture.raw"
180
+ filename=f"data/images/camera_capture_{mpos.time.epoch_seconds()}.raw"
181
try:
182
with open(filename, 'wb') as f:
183
f.write(self.current_cam_buffer)
0 commit comments