Skip to content

Commit

Permalink
Replace i2c_reset calls with sensirion_i2c_general_call_reset (#70)
Browse files Browse the repository at this point in the history
i2c_reset is deprecated and just calls into
sensirion_i2c_general_call_reset.
  • Loading branch information
rnestler authored Oct 26, 2020
1 parent 4a0ab75 commit 6a7b571
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
5 changes: 3 additions & 2 deletions tests/sht3x-test.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "sensirion_common.h"
#include "sensirion_test_setup.h"
#include "sht3x.h"

Expand Down Expand Up @@ -49,8 +50,8 @@ static void sht3x_test_all_power_modes() {
}

static void test_teardown() {
int16_t ret = i2c_reset();
CHECK_ZERO_TEXT(ret, "i2c_reset");
int16_t ret = sensirion_i2c_general_call_reset();
CHECK_ZERO_TEXT(ret, "sensirion_i2c_general_call_reset");
sensirion_i2c_release();
}

Expand Down
5 changes: 3 additions & 2 deletions tests/sht4x-test.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "sensirion_common.h"
#include "sensirion_test_setup.h"
#include "sht4x.h"

Expand Down Expand Up @@ -49,8 +50,8 @@ static void sht4x_test_all_power_modes() {
}

static void test_teardown() {
int16_t ret = i2c_reset();
CHECK_ZERO_TEXT(ret, "i2c_reset");
int16_t ret = sensirion_i2c_general_call_reset();
CHECK_ZERO_TEXT(ret, "sensirion_i2c_general_call_reset");
sensirion_i2c_release();
}

Expand Down
4 changes: 2 additions & 2 deletions tests/shtc1-test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ static void shtc1_sleep_fail() {
}

static void test_teardown() {
int16_t ret = i2c_reset();
CHECK_ZERO_TEXT(ret, "i2c_reset");
int16_t ret = sensirion_i2c_general_call_reset();
CHECK_ZERO_TEXT(ret, "sensirion_i2c_general_call_reset");
sensirion_i2c_release();
}

Expand Down

0 comments on commit 6a7b571

Please sign in to comment.