We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There is a typo in wiringPiSPI.cc where the first argument to wiringPiSPI.cc is selected for the channel and the speed. The following patch fixes it.
diff --git a/src/wiringPiSPI.cc b/src/wiringPiSPI.cc index a8210f6..37920fc 100644 --- a/src/wiringPiSPI.cc +++ b/src/wiringPiSPI.cc @@ -63,7 +63,7 @@ IMPLEMENT(wiringPiSPISetup) { CHECK_ARGUMENT_TYPE_INT32(1); int channel = GET_ARGUMENT_AS_INT32(0); - int speed = GET_ARGUMENT_AS_INT32(0); + int speed = GET_ARGUMENT_AS_INT32(1); CHECK_ARGUMENT_IN_INTS(0, channel, (0, 1));
The text was updated successfully, but these errors were encountered:
Thanks for reporting this bug, it will be included in the next release (will be released in the next weeks)
Sorry, something went wrong.
Add wiringPiSPISetupMode and fix issue WiringPi#18
9bd1fd4
nekuz0r
No branches or pull requests
There is a typo in wiringPiSPI.cc where the first argument to wiringPiSPI.cc is selected for the channel and the speed. The following patch fixes it.
The text was updated successfully, but these errors were encountered: