Skip to content

Commit 0f2566f

Browse files
Cleanups
1 parent acdc2d6 commit 0f2566f

File tree

1 file changed

+0
-8
lines changed
  • internal_filesystem/apps/com.micropythonos.camera/assets

1 file changed

+0
-8
lines changed

internal_filesystem/apps/com.micropythonos.camera/assets/camera_app.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,6 @@ def onCreate(self):
103103
self.setContentView(main_screen)
104104

105105
def onResume(self, screen):
106-
try:
107-
pass
108-
#print(f"current_hardware: {current_hardware}") # problem: this isn't defined
109-
#assert(current_hardware == "unix" or current_hardware == "waveshare-esp32-s3-touch-lcd-2")
110-
except Exception as e: # use an assert in case current_hardware isn't defined for some boards
111-
print("WARNING: the current_hardware doesn't have support for a camera!")
112-
print(e)
113-
return
114106
self.cam = init_internal_cam()
115107
if self.cam:
116108
self.image.set_rotation(900) # internal camera is rotated 90 degrees

0 commit comments

Comments
 (0)