Skip to content

SPI library DigitalPotControl digitalPotWrite return value [imported] #1063

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

Closed
cmaglie opened this issue Nov 15, 2012 · 0 comments
Closed

SPI library DigitalPotControl digitalPotWrite return value [imported] #1063

cmaglie opened this issue Nov 15, 2012 · 0 comments
Labels
Component: Documentation Related to Arduino's documentation content

Comments

@cmaglie
Copy link
Member

cmaglie commented Nov 15, 2012

This is Issue 1063 moved from a Google Code project.
Added by 2012-10-06T22:00:29.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.

Original labels: Type-Defect, Priority-Medium

Original description

In the SPI library's DigitalPotControl control example, the digitalPotWrite() function is defined to return an int, but there is no return value at the end of the function. The calling code doesn't use the return value, but as a proper example, the digitalPotWrite() function should have a return value if it's defined to return an int, or should be changed to void.

@Fede85 Fede85 closed this as completed in c111f66 Apr 24, 2013
oriregev pushed a commit to oriregev/Arduino that referenced this issue Dec 20, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Documentation Related to Arduino's documentation content
Projects
None yet
Development

No branches or pull requests

1 participant