Skip to content

Commit c262662

Browse files
committed
components/M5Unified: Fix i2c scan blocking issue.
In_I2C(I2C1) needs to be released from M5Unfied. Signed-off-by: lbuque <[email protected]>
1 parent 24bced9 commit c262662

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

m5stack/components/M5Unified/mpy_m5unified.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ mp_obj_t m5_begin(size_t n_args, const mp_obj_t *args) {
378378
// ret = i2c_driver_install(I2C_NUM_1, I2C_MODE_MASTER, 0, 0, 0);
379379
// ESP_LOGE("*", "i2c_driver_install: %d", ret);
380380
// }
381-
// M5.In_I2C.release();
381+
M5.In_I2C.release();
382382

383383
M5.Display.clear();
384384
// default display

0 commit comments

Comments
 (0)