You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
camera_app.py: disable broken hardware check
This commit is contained in:
@@ -104,9 +104,12 @@ class CameraApp(Activity):
|
||||
|
||||
def onResume(self, screen):
|
||||
try:
|
||||
assert(current_hardware == "unix" or current_hardware == "waveshare-esp32-s3-touch-lcd-2")
|
||||
pass
|
||||
#print(f"current_hardware: {current_hardware}") # problem: this isn't defined
|
||||
#assert(current_hardware == "unix" or current_hardware == "waveshare-esp32-s3-touch-lcd-2")
|
||||
except Exception as e: # use an assert in case current_hardware isn't defined for some boards
|
||||
print("WARNING: the current_hardware doesn't have support for a camera!")
|
||||
print(e)
|
||||
return
|
||||
self.cam = init_internal_cam()
|
||||
if self.cam:
|
||||
|
||||
Reference in New Issue
Block a user