-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
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?
Metadata
Metadata
Assignees
Labels
No labels