From a0c63cc78b6973d8f4e883523849aa5fec7f2bd0 Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Wed, 14 Jan 2026 00:04:33 +0100 Subject: [PATCH] Disable some camera resolutions --- internal_filesystem/lib/mpos/ui/camera_activity.py | 4 ++-- internal_filesystem/lib/mpos/ui/camera_settings.py | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/internal_filesystem/lib/mpos/ui/camera_activity.py b/internal_filesystem/lib/mpos/ui/camera_activity.py index e1186336..87d9f5c5 100644 --- a/internal_filesystem/lib/mpos/ui/camera_activity.py +++ b/internal_filesystem/lib/mpos/ui/camera_activity.py @@ -121,8 +121,8 @@ class CameraActivity(Activity): if self.scanqr_mode or self.scanqr_intent: self.start_qr_decoding() if not self.cam and self.scanqr_mode: - print("No camera found, stopping camera app") - self.finish() + self.status_label.set_text(self.STATUS_NO_CAMERA) + # leave it open so the user can read the error and maybe open the settings else: self.load_settings_cached() self.start_cam() diff --git a/internal_filesystem/lib/mpos/ui/camera_settings.py b/internal_filesystem/lib/mpos/ui/camera_settings.py index 8a67cda8..f9f74871 100644 --- a/internal_filesystem/lib/mpos/ui/camera_settings.py +++ b/internal_filesystem/lib/mpos/ui/camera_settings.py @@ -91,12 +91,12 @@ class CameraSettingsActivity(Activity): ("640x480", "640x480"), ("640x640", "640x640"), ("720x720", "720x720"), - ("800x600", "800x600"), - ("800x800", "800x800"), - ("1024x768", "1024x768"), + #("800x600", "800x600"), # somehow this fails to initialize + #("800x800", "800x800"), # somehow this fails to initialize ("960x960", "960x960"), - ("1280x720", "1280x720"), - ("1024x1024", "1024x1024"), + #("1024x768", "1024x768"), # Makes more sense to show it after, even though resolution is lower than 960x960 + #("1280x720", "1280x720"), # weird and same resolution as 960x960 + #("1024x1024", "1024x1024"), # somehow this fails to initialize # Disabled because they use a lot of RAM and are very slow: #("1280x1024", "1280x1024"), #("1280x1280", "1280x1280"),