Skip to content

Commit

Permalink
Romi32U4Motors: Changed the maxSpeed variable to an int16_t
Browse files Browse the repository at this point in the history
to make sure the comparison is done correctly.
  • Loading branch information
DavidEGrayson committed Feb 6, 2017
1 parent dcb98fc commit 9d990bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Romi32U4Motors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
bool Romi32U4Motors::flipLeft = false;
bool Romi32U4Motors::flipRight = false;

uint16_t Romi32U4Motors::maxSpeed = 300;
int16_t Romi32U4Motors::maxSpeed = 300;

// initialize timer1 to generate the proper PWM outputs to the motor drivers
void Romi32U4Motors::init2()
Expand Down

0 comments on commit 9d990bf

Please sign in to comment.