Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
Replace i2c_reset calls with sensirion_i2c_general_call_reset (#114)
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 4952a9f commit d423ab5
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions tests/sgp30-test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ static void test_setup() {
}

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/sgp40-test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ TEST_GROUP (SGP40_Tests) {
}

void 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/sgp40-voc-index-test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ TEST_GROUP (SGP40_VOC_INDEX_Tests) {
}

void 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/sgpc3-test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ static void sgpc3_test_all_inits(uint16_t expected_feature_set) {
}

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/svm30-test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ TEST_GROUP (SVM30_Tests) {
}

void 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 d423ab5

Please sign in to comment.