Skip to content

Commit

Permalink
Merge pull request #133 from IsaacJT/fix-esp-4.3
Browse files Browse the repository at this point in the history
esp: Initialise i2c_config_t struct to 0
  • Loading branch information
lexus2k authored Oct 26, 2021
2 parents 99c5533 + 6adb2d4 commit d42f23c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ssd1306_hal/esp/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ void ssd1306_platform_i2cInit(int8_t busId, uint8_t addr, ssd1306_platform_i2cCo
// init your interface here
if ( busId < 0) busId = I2C_NUM_1;
s_bus_id = busId;
i2c_config_t conf;
i2c_config_t conf = { 0 };
conf.mode = I2C_MODE_MASTER;
conf.sda_io_num = cfg->sda >= 0 ? cfg->sda : 21;
conf.sda_pullup_en = GPIO_PULLUP_ENABLE;
Expand Down

0 comments on commit d42f23c

Please sign in to comment.