Skip to content

Commit

Permalink
variables swapped in example
Browse files Browse the repository at this point in the history
address and port positions in example init function were out of place
  • Loading branch information
rekliner authored Jul 5, 2024
1 parent 14bc58d commit 5e79f55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/ds3502/default/main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ void test(void *pvParameters)
memset(&dev, 0, sizeof(i2c_dev_t));

// Initialize i2c device descriptor
ESP_ERROR_CHECK(ds3502_init_desc(&dev, 0, ADDR, CONFIG_EXAMPLE_I2C_MASTER_SDA, CONFIG_EXAMPLE_I2C_MASTER_SCL));
ESP_ERROR_CHECK(ds3502_init_desc(&dev, ADDR, 0, CONFIG_EXAMPLE_I2C_MASTER_SDA, CONFIG_EXAMPLE_I2C_MASTER_SCL));

// Initialize potentiometer
ESP_ERROR_CHECK(ds3502_init(&dev));
Expand Down

0 comments on commit 5e79f55

Please sign in to comment.