Skip to content

Commit a9d53ad

Browse files
committed
Fix "check-stubs" problems
1 parent 7cb40c9 commit a9d53ad

File tree

1 file changed

+2
-2
lines changed
  • ports/espressif/bindings/esp32_camera

1 file changed

+2
-2
lines changed

ports/espressif/bindings/esp32_camera/Camera.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
//| frame_size: FrameSize=FrameSize.QQVGA,
5959
//| jpeg_quality: int=15,
6060
//| double_buffered: bool = True,
61-
//| grab_mode: GrabMode = GrabMode.WhenEmpty,
61+
//| grab_mode: GrabMode = GrabMode.WHEN_EMPTY,
6262
//| ) -> None:
6363
//| """
6464
//| Configure and initialize a camera with the given properties
@@ -191,7 +191,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_1(esp32_camera_camera_frame_available_get_obj, es
191191
MP_PROPERTY_GETTER(esp32_camera_camera_frame_available_obj,
192192
(mp_obj_t)&esp32_camera_camera_frame_available_get_obj);
193193

194-
//| def take(timeout: Optional[float]=0.25) -> Optional[displayio.Bitmap | ReadableBuffer]:
194+
//| def take(self, timeout: Optional[float]=0.25) -> Optional[displayio.Bitmap | ReadableBuffer]:
195195
//| """Record a frame. Wait up to 'timeout' seconds for a frame to be captured.
196196
//|
197197
//| In the case of timeout, `None` is returned.

0 commit comments

Comments
 (0)