Skip to content

Commit 0051ab3

Browse files
authored
Apply i2c1 fix also for CoreS3SE
1 parent ba67895 commit 0051ab3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

m5stack/board.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ extern "C" {
1515
auto cfg = M5.config();
1616
cfg.output_power = false;
1717
M5.begin(cfg);
18-
if (M5.getBoard() == m5::board_t::board_M5StackCoreS3) {
18+
if (M5.getBoard() == m5::board_t::board_M5StackCoreS3 || M5.getBoard() == m5::board_t::board_M5StackCoreS3SE) {
1919
periph_module_disable(PERIPH_I2C1_MODULE);
2020
i2c_config_t conf;
2121
memset(&conf, 0, sizeof(i2c_config_t));
@@ -64,4 +64,4 @@ extern "C" {
6464
M5.Power.setUsbOutput(usb_output);
6565
M5.Power.setExtOutput(bus_output);
6666
}
67-
}
67+
}

0 commit comments

Comments
 (0)