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