You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Camera_app: fix API
This commit is contained in:
@@ -154,7 +154,8 @@ class CameraApp(Activity):
|
||||
print("camera app cleanup done.")
|
||||
|
||||
def set_image_size(self):
|
||||
target_h = mpos.ui.vertical_resolution
|
||||
disp = lv.display_get_default()
|
||||
target_h = disp.get_vertical_resolution()
|
||||
target_w = target_h
|
||||
if target_w == self.width and target_h == self.height:
|
||||
print("Target width and height are the same as native image, no scaling required.")
|
||||
|
||||
Reference in New Issue
Block a user