Skip to content

Commit 3187949

Browse files
committed
typo in examples
1 parent f7ecbce commit 3187949

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/hardware_specific_examples/DRV8302_driver/6pwm_example/encoder/full_control_serial/full_control_serial.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ void doB(){encoder.handleB();}
4242

4343
// commander interface
4444
Commander command = Commander(Serial);
45-
void onMotor(char* cmd){ command.motor(&motion, cmd); }
45+
void onMotor(char* cmd){ command.motor(&motor, cmd); }
4646

4747
void setup() {
4848

@@ -106,7 +106,7 @@ void setup() {
106106
motor.target = 2;
107107

108108
// define the motor id
109-
command.add('A', onMotor, "motor");
109+
command.add('M', onMotor, "motor");
110110

111111
Serial.println(F("Initial motion control loop is voltage loop."));
112112
Serial.println(F("Initial target voltage 2V."));

0 commit comments

Comments
 (0)