Skip to content

Commit a0c63cc

Browse files
Disable some camera resolutions
1 parent fd548d4 commit a0c63cc

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

internal_filesystem/lib/mpos/ui/camera_activity.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ def onResume(self, screen):
121121
if self.scanqr_mode or self.scanqr_intent:
122122
self.start_qr_decoding()
123123
if not self.cam and self.scanqr_mode:
124-
print("No camera found, stopping camera app")
125-
self.finish()
124+
self.status_label.set_text(self.STATUS_NO_CAMERA)
125+
# leave it open so the user can read the error and maybe open the settings
126126
else:
127127
self.load_settings_cached()
128128
self.start_cam()

internal_filesystem/lib/mpos/ui/camera_settings.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,12 @@ class CameraSettingsActivity(Activity):
9191
("640x480", "640x480"),
9292
("640x640", "640x640"),
9393
("720x720", "720x720"),
94-
("800x600", "800x600"),
95-
("800x800", "800x800"),
96-
("1024x768", "1024x768"),
94+
#("800x600", "800x600"), # somehow this fails to initialize
95+
#("800x800", "800x800"), # somehow this fails to initialize
9796
("960x960", "960x960"),
98-
("1280x720", "1280x720"),
99-
("1024x1024", "1024x1024"),
97+
#("1024x768", "1024x768"), # Makes more sense to show it after, even though resolution is lower than 960x960
98+
#("1280x720", "1280x720"), # weird and same resolution as 960x960
99+
#("1024x1024", "1024x1024"), # somehow this fails to initialize
100100
# Disabled because they use a lot of RAM and are very slow:
101101
#("1280x1024", "1280x1024"),
102102
#("1280x1280", "1280x1280"),

0 commit comments

Comments
 (0)