Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 961b038

Browse filesBrowse files
authored
Merge pull request #6 from makermelissa/v4.2
Fix I2C init for ESP32S2
2 parents d01101d + 6b264af commit 961b038
Copy full SHA for 961b038

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎cores/esp32/esp32-hal-i2c.c

Copy file name to clipboardExpand all lines: cores/esp32/esp32-hal-i2c.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1816,7 +1816,7 @@ i2c_t * i2cInit(uint8_t i2c_num, int8_t sda, int8_t scl, uint32_t clk_speed){
18161816
i2c_driver_delete((i2c_port_t)i2c_num);
18171817
}
18181818

1819-
i2c_config_t conf;
1819+
i2c_config_t conf = { };
18201820
conf.mode = I2C_MODE_MASTER;
18211821
conf.scl_io_num = (gpio_num_t)scl;
18221822
conf.sda_io_num = (gpio_num_t)sda;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.