diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-25 12:09:15 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-25 12:09:15 +0200 |
commit | 18e5d93da8fdf6dd97c9e2d090ae2648d85cb851 (patch) | |
tree | ec4935b8682ab878ecbe0c41afa96cacf9b5f53c /lib/pbdrv/drv/rp2040/mod.c | |
parent | 208dee5a3cf9eea84c5e26ef5cfe3abdd2e2a2f8 (diff) |
fix client show all messages
Diffstat (limited to 'lib/pbdrv/drv/rp2040/mod.c')
-rw-r--r-- | lib/pbdrv/drv/rp2040/mod.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/pbdrv/drv/rp2040/mod.c b/lib/pbdrv/drv/rp2040/mod.c index bc20927..bca38d0 100644 --- a/lib/pbdrv/drv/rp2040/mod.c +++ b/lib/pbdrv/drv/rp2040/mod.c @@ -1,10 +1,8 @@ -#include "pb.h" - -#include "pb.h" -#include "pb-types.h" -#include "pb-mod.h" -#include "pb-send.h" -#include "pb-buf.h" +#include "../../pb.h" +#include "../../pb-types.h" +#include "../../pb-mod.h" +#include "../../pb-send.h" +#include "../../pb-buf.h" #include <hardware/i2c.h> #include <hardware/gpio.h> @@ -43,7 +41,7 @@ void pb_setup() { } __weak void pb_i2c_send(i2c_addr_t addr, const uint8_t * buf, size_t sz) { - pb_hook_i2c_send(addr, buf, sz); + if (pb_hook_i2c_send(addr, buf, sz)) return; // false to write stop condition to i2c bus i2c_write_timeout_us(PB_I2C_M, addr, buf, sz, false, PB_TIMEOUT_US); |