Skip to content

Commit 0cbed06

Browse files
waveshare_esp32_s3_touch_lcd_2: fix camera init
1 parent d70036e commit 0cbed06

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal_filesystem/lib/mpos/board/waveshare_esp32_s3_touch_lcd_2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def init_cam(width, height, colormode):
146146
xclk_freq=20000000,
147147
powerdown_pin=-1,
148148
reset_pin=-1,
149-
pixel_format=PixelFormat.RGB565 if self.colormode else PixelFormat.GRAYSCALE,
149+
pixel_format=PixelFormat.RGB565 if colormode else PixelFormat.GRAYSCALE,
150150
frame_size=frame_size,
151151
#grab_mode=GrabMode.WHEN_EMPTY,
152152
grab_mode=GrabMode.LATEST,

0 commit comments

Comments
 (0)