Skip to content

fix(wire): remove ambiguous begin(uint8_t) overload - #3127

Merged
fpistm merged 1 commit into
stm32duino:mainfrom
fpistm:fix_wire_begin_overload
Nov 30, 2026
Merged

fpistm merged 1 commit into
stm32duino:mainfrom
fpistm:fix_wire_begin_overload

Conversation

@fpistm

@fpistm fpistm commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

begin(uint8_t) overrides HardwareI2C::begin(uint8_t) and was ambiguous with begin(uint8_t, bool = false, bool = false) when called with a uint8_t argument.

Remove the default arguments of the latter, so a single uint8_t argument resolves to the override. begin(int, ...) keeps its defaults.

Update the I2C documentation with the actual overloads.

Issue introduced by ArduinoCore-API integration.

Fixes: #3121

begin(uint8_t) overrides HardwareI2C::begin(uint8_t) and was
ambiguous with begin(uint8_t, bool = false, bool = false) when
called with a uint8_t argument.

Remove the default arguments of the latter, so a single uint8_t
argument resolves to the override. begin(int, ...) keeps its
defaults.

Update the I2C documentation with the actual overloads.

Fixes: stm32duino#3121
Assisted-by: GitHub Copilot: claude-sonnet-5.5
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
@fpistm fpistm added the fix 🩹 Bug fix label Nov 30, 2026
@fpistm fpistm added this to the 3.2.0 milestone Nov 30, 2026
@fpistm
fpistm merged commit a8dfec9 into stm32duino:main Nov 30, 2026
28 of 32 checks passed
@github-project-automation github-project-automation Bot moved this from In progress to Done in STM32 core based on ST HAL Nov 30, 2026
@fpistm
fpistm deleted the fix_wire_begin_overload branch November 30, 2026 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix 🩹 Bug fix

Projects

Development

Successfully merging this pull request may close these issues.

two same function signature into class TwoWire

1 participant