Skip to content

Commit

Permalink
Merge pull request #646 from rekliner/patch-1
Browse files Browse the repository at this point in the history
variables swapped in ds3502 example
  • Loading branch information
UncleRus authored Jul 16, 2024
2 parents df120c0 + 5e79f55 commit cab1ba5
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 cab1ba5

Please sign in to comment.