Skip to content

Commit cf8857a

Browse files
committed
tests: benchmarks: i2c_endless: Fix usage of nrfx error codes
Since nrfx 4, driver APIs return errno values. Comparing against NRFX_SUCCESS is therefore wrong. Unfortunately such cases cannot be found by enabling compiler warnings. Signed-off-by: Rubin Gerritsen <[email protected]>
1 parent 9be2fd4 commit cf8857a

File tree

1 file changed

+1
-1
lines changed
  • tests/benchmarks/i2c_endless/src

1 file changed

+1
-1
lines changed

tests/benchmarks/i2c_endless/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ void twis_setup(void)
121121
int ret;
122122

123123
ret = nrfx_twis_init(&twis, &config, i2s_slave_handler);
124-
if (ret != NRFX_SUCCESS) {
124+
if (ret != 0) {
125125
LOG_ERR("nrfx_twis_init returned %d", ret);
126126
}
127127

0 commit comments

Comments
 (0)