From 62da87359e9040bed31f8b6defbc589a9e039e1c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 20 Nov 2025 18:01:41 +0000 Subject: [PATCH 1/2] Bump actions/checkout from 5 to 6 Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/check-arduino.yml | 2 +- .github/workflows/compile-platform-examples.yml | 2 +- .github/workflows/spell-check.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check-arduino.yml b/.github/workflows/check-arduino.yml index 1dd29858c..71e5a7f11 100644 --- a/.github/workflows/check-arduino.yml +++ b/.github/workflows/check-arduino.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: Arduino Lint uses: arduino/arduino-lint-action@v2 diff --git a/.github/workflows/compile-platform-examples.yml b/.github/workflows/compile-platform-examples.yml index 7916e08dc..e7c137439 100644 --- a/.github/workflows/compile-platform-examples.yml +++ b/.github/workflows/compile-platform-examples.yml @@ -214,7 +214,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: Compile examples uses: arduino/compile-sketches@v1 diff --git a/.github/workflows/spell-check.yml b/.github/workflows/spell-check.yml index 19f5d38f8..8fc4b8c6b 100644 --- a/.github/workflows/spell-check.yml +++ b/.github/workflows/spell-check.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: Spell check uses: codespell-project/actions-codespell@master From 685820f502f34e8da2477e96c17b685fa7510dbd Mon Sep 17 00:00:00 2001 From: Ali Ahmed Date: Sat, 22 Nov 2025 23:07:30 +0200 Subject: [PATCH 2/2] Wire: Fix write() returning incorrect byte count on buffer overflow (see issue #597) fixed typo Fixed Wire.write() always returning 0 in slave send mode --- libraries/Wire/src/Wire.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/libraries/Wire/src/Wire.cpp b/libraries/Wire/src/Wire.cpp index 001d924df..8749a4221 100644 --- a/libraries/Wire/src/Wire.cpp +++ b/libraries/Wire/src/Wire.cpp @@ -265,16 +265,20 @@ size_t TwoWire::write(uint8_t data) size_t TwoWire::write(const uint8_t *data, size_t quantity) { if(transmitting){ - // in master transmitter mode + // in master transmitter mode + uint8_t bytesSent = 0; + // number of bytes successfully added to the buffer for(size_t i = 0; i < quantity; ++i){ - write(data[i]); - } + if (write(data[i]) == 1) // if a byte was successfully added to the buffer + bytesSent++; + } + return bytesSent; }else{ // in slave send mode // reply to master twi_transmit(data, quantity); + return quantity; } - return quantity; } // must be called in: