diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/pbdrv/mod.c | 6 | ||||
-rw-r--r-- | test/pbdrv/msg.cpp | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/test/pbdrv/mod.c b/test/pbdrv/mod.c index 81e4ebf..5c4c95e 100644 --- a/test/pbdrv/mod.c +++ b/test/pbdrv/mod.c @@ -1,6 +1,12 @@ +#include <stdio.h> + #include "pb-mod.h" #include "pb-types.h" const char * PB_MOD_NAME = "test"; const i2c_addr_t PB_MOD_ADDR = 0x08; +void pb_i2c_send(i2c_addr_t addr, const uint8_t * buf, size_t sz) { + printf("[0x%02x]: buf[%lu]\n", addr & 0x7f, sz); +} + diff --git a/test/pbdrv/msg.cpp b/test/pbdrv/msg.cpp index d58d6f3..ca23bc7 100644 --- a/test/pbdrv/msg.cpp +++ b/test/pbdrv/msg.cpp @@ -34,7 +34,7 @@ TEST(pb_msg_rw, cmd_req_read) { } TEST(pb_msg_rw, cmd_req_magic) { - pb_buf_t buf = pb_send_req_magic(); + pb_buf_t buf = pb_send_magic_req(); ASSERT_NE(buf.data, nullptr); ASSERT_GE(buf.size, 0); |