Repository navigation
fix(wire): remove ambiguous begin(uint8_t) overload - #3127
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
begin(uint8_t)overridesHardwareI2C::begin(uint8_t)and was ambiguous withbegin(uint8_t, bool = false, bool = false)when called with auint8_targument.Remove the default arguments of the latter, so a single
uint8_targument 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