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

Fix min/max private variables overflow #101

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix min/max private variables overflow
bleubidon committed Jun 25, 2022
commit 7b4f26462c5053ac967b237c602000ad9ba54200
4 changes: 2 additions & 2 deletions src/Servo.h
Original file line number Diff line number Diff line change
@@ -115,8 +115,8 @@ class Servo
bool attached(); // return true if this servo is attached, otherwise false
private:
uint8_t servoIndex; // index into the channel data for this servo
int8_t min; // minimum is this value times 4 added to MIN_PULSE_WIDTH
int8_t max; // maximum is this value times 4 added to MAX_PULSE_WIDTH
int min; // minimum is this value times 4 added to MIN_PULSE_WIDTH
int max; // maximum is this value times 4 added to MAX_PULSE_WIDTH
};

#endif