Skip to content

Commit e7f5124

Browse files
ccoenensandeepmistry
authored andcommitted
removing unused variable from Stepper
1 parent 482ec0d commit e7f5124

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

libraries/Stepper/src/Stepper.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@
8585
Stepper::Stepper(int number_of_steps, int motor_pin_1, int motor_pin_2)
8686
{
8787
this->step_number = 0; // which step the motor is on
88-
this->speed = 0; // the motor speed, in revolutions per minute
8988
this->direction = 0; // motor direction
9089
this->last_step_time = 0; // time stamp in us of the last step taken
9190
this->number_of_steps = number_of_steps; // total number of steps for this motor
@@ -116,7 +115,6 @@ Stepper::Stepper(int number_of_steps, int motor_pin_1, int motor_pin_2,
116115
int motor_pin_3, int motor_pin_4)
117116
{
118117
this->step_number = 0; // which step the motor is on
119-
this->speed = 0; // the motor speed, in revolutions per minute
120118
this->direction = 0; // motor direction
121119
this->last_step_time = 0; // time stamp in us of the last step taken
122120
this->number_of_steps = number_of_steps; // total number of steps for this motor
@@ -149,7 +147,6 @@ Stepper::Stepper(int number_of_steps, int motor_pin_1, int motor_pin_2,
149147
int motor_pin_5)
150148
{
151149
this->step_number = 0; // which step the motor is on
152-
this->speed = 0; // the motor speed, in revolutions per minute
153150
this->direction = 0; // motor direction
154151
this->last_step_time = 0; // time stamp in us of the last step taken
155152
this->number_of_steps = number_of_steps; // total number of steps for this motor

libraries/Stepper/src/Stepper.h

-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ class Stepper {
102102
void stepMotor(int this_step);
103103

104104
int direction; // Direction of rotation
105-
int speed; // Speed in RPMs
106105
unsigned long step_delay; // delay between steps, in ms, based on speed
107106
int number_of_steps; // total number of steps this motor can take
108107
int pin_count; // how many pins are in use.

0 commit comments

Comments
 (0)