-
Notifications
You must be signed in to change notification settings - Fork 126
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
When does queryPid
return true
?
#248
Comments
Looking closer, it seems |
Yeah that is the case, the docs threw me off |
- change return type for queryPID() methods - update code comments for queryPID() - update README document - update code comments for conditionResponse()
@Ryccoo I just committed a fix for this inconsistency. As suggested by @PowerBroker2, queryPID() now returns void. The code comments and documentation now reflect this. Thanks for finding the issue. |
Looking at the code for
queryPid
method, the docs states:ELMduino/src/ELMduino.cpp
Lines 575 to 579 in 5d04161
It seems to return the value of
connected
ELMduino/src/ELMduino.cpp
Lines 579 to 585 in 5d04161
Looking into the
sendCommand
method that is called byqueryPid
ELMduino/src/ELMduino.cpp
Line 2138 in 5d04161
it sets
connected
tofalse
ELMduino/src/ELMduino.cpp
Line 2146 in 5d04161
never setting it back to
true
.This looks like
queryPid
would always returnfalse
?The text was updated successfully, but these errors were encountered: