Skip to content

Commit 197c2c9

Browse files
committed
fix/startup: Fixed m5capsule getting the wrong board id
Signed-off-by: lbuque <[email protected]>
1 parent 3ffc7d3 commit 197c2c9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

m5stack/modules/startup/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,12 @@ def startup(boot_opt, timeout: int = 60) -> None:
6969

7070
pin4 = Pin(4, Pin.OUT)
7171
pin4.value(1)
72-
if board_id in (M5.BOARD.M5AtomS3U, M5.BOARD.M5AtomS3Lite, M5.BOARD.M5StampS3):
72+
if board_id in (
73+
M5.BOARD.M5AtomS3U,
74+
M5.BOARD.M5AtomS3Lite,
75+
M5.BOARD.M5StampS3,
76+
M5.BOARD.M5Capsule
77+
):
7378
# M5AtomS3U may fail to enter the AUTODETECT process, which will cause
7479
# m5things to fail to obtain the board id.
7580
nvs = esp32.NVS("M5GFX")

0 commit comments

Comments
 (0)