You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Disable some camera resolutions
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user