From b6c95a3c9dfab3632249846d83af73f30a76e6ca Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Thu, 7 Aug 2025 10:15:15 +0200 Subject: [PATCH] test Signed-off-by: iabdalkader --- libraries/Wire/Wire.cpp | 3 ++- loader/main.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/Wire/Wire.cpp b/libraries/Wire/Wire.cpp index 0453db62d..3b80cc3b9 100644 --- a/libraries/Wire/Wire.cpp +++ b/libraries/Wire/Wire.cpp @@ -11,7 +11,8 @@ arduino::ZephyrI2C::ZephyrI2C(const struct device *i2c) : i2c_dev(i2c) { } -void arduino::ZephyrI2C::begin() { +void arduino::ZephyrI2C::begin() +{ ring_buf_init(&rxRingBuffer.rb, sizeof(rxRingBuffer.buffer), rxRingBuffer.buffer); } diff --git a/loader/main.c b/loader/main.c index 643da9d75..df9e3acc0 100644 --- a/loader/main.c +++ b/loader/main.c @@ -153,6 +153,7 @@ static int loader(const struct shell *sh) } #else // Assuming the sketch is stored in the same flash device as the loader + uint8_t* sketch_buf = (uint8_t*)base_addr; #endif