Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile fails with call of overloaded 'begin()' is ambiguous. #34

Closed
paulvha opened this issue Mar 28, 2024 · 1 comment
Closed

compile fails with call of overloaded 'begin()' is ambiguous. #34

paulvha opened this issue Mar 28, 2024 · 1 comment

Comments

@paulvha
Copy link

paulvha commented Mar 28, 2024

Since the write-protect option has been added there are 2 begin() calls.
bool begin(uint8_t deviceAddress = 0b1010000, TwoWire &wirePort = Wire); // By default use the Wire port
bool begin(uint8_t deviceAddress = 0b1010000, TwoWire &wirePort = Wire, uint8_t WP = 255); // By default use the Wire port

The compiler is now confused about which one to select hence the failure.

see: https://forum.sparkfun.com/viewtopic.php?f=102&t=61337

Solution :
Remove the original begin() call (the one without WP) reference in the header and CPP file.

@nseidle
Copy link
Member

nseidle commented Mar 29, 2024

@paulvha - thanks so much for reporting! This is what I get for merging without testing. Should be working now. Release imminent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants