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

Fix "call to overloaded transfer() is ambiguous" issue #924

Merged
merged 2 commits into from
Apr 28, 2024

Conversation

board707
Copy link
Contributor

Two overloaded SPI.transfer()methods in file STM32F1/libraries/SPI/src/SPI.h:

void transfer(const void * buffer, size_t length);

void transfer(uint8_t * trx_buf, uint32 len);

produces a "call is ambiguous" error if called as:
spi.transfer(uint8*, size_t);

Making the type of second parameter the same in both methods eliminates the error.

@stevstrong stevstrong merged commit d05a128 into rogerclarkmelbourne:master Apr 28, 2024
1 check passed
@stevstrong
Copy link
Collaborator

Thank you.

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

Successfully merging this pull request may close these issues.

None yet

2 participants