Skip to content

Commit

Permalink
fixup! tests/periph_i2c: add tests for periph_i2c_reconfigure features
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco committed Apr 21, 2020
1 parent 1cd1fd2 commit 4e5e405
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/periph_i2c/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ int cmd_i2c_gpio(int argc, char **argv)
gpio_t sda_pin = i2c_pin_sda(dev);
gpio_t scl_pin = i2c_pin_scl(dev);

printf("Command: i2c_deinit(%i)\n", dev);
i2c_deinit(dev);
printf("Command: i2c_deinit_pins(%i)\n", dev);
i2c_deinit_pins(dev);

gpio_init(sda_pin, GPIO_OUT);
gpio_init(scl_pin, GPIO_OUT);
Expand All @@ -196,8 +196,8 @@ int cmd_i2c_gpio(int argc, char **argv)

xtimer_sleep(1);

printf("Command: i2c_init(%i)\n", dev);
i2c_init(dev);
printf("Command: i2c_init_pins(%i)\n", dev);
i2c_init_pins(dev);

printf("Success: i2c_%i re-init\n", dev);
return 0;
Expand Down

0 comments on commit 4e5e405

Please sign in to comment.