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
in the pid code, the following are defined:
// Constants for backward compatibility PID.AUTOMATIC = 1; PID.MANUAL = 0;
I assumed these were to be passed to setMode() - I prefer explicit constants to "magic strings".
However, in setMode(), instead of values 0 and 1, setMode() refers to 1 and 2:
if (Mode == 1 || Mode.toString().toLowerCase() == 'automatic' || Mode.toString().toLowerCase() == 'auto') { newAuto = 1; } else if (Mode == 2 || Mode.toString().toLowerCase() == 'manual') { newAuto = 0; }
Shouldn't these correspond?
The text was updated successfully, but these errors were encountered:
Yes - it looks like it might be related to this update:
9f62aa5
Do you want to update and do a pull request?
Sorry, something went wrong.
No branches or pull requests
in the pid code, the following are defined:
I assumed these were to be passed to setMode() - I prefer explicit constants to "magic strings".
However, in setMode(), instead of values 0 and 1, setMode() refers to 1 and 2:
Shouldn't these correspond?
The text was updated successfully, but these errors were encountered: