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

Adds convenience method to query if a particular PID is supported #212

Merged
merged 1 commit into from
Dec 31, 2023

Conversation

jimwhitelaw
Copy link
Collaborator

This is a convenience method that selects the correct supportedPIDS_xx_xx() query and parses the bit-encoded result, returning a simple Boolean value indicating PID support from the ECU.

This change includes an example program showing how to use the new method. Just call the new method with the PID you are interested in:

    uint8_t pid = ENGINE_RPM;
    bool pidOK = myELM327.isPidSupported(pid);

@PowerBroker2 PowerBroker2 merged commit feaa1c0 into PowerBroker2:master Dec 31, 2023
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.

2 participants