Skip to content

Commit 9451d96

Browse files
authored
Update Commander.cpp
1 parent a3c80da commit 9451d96

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/communication/Commander.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,7 @@ void Commander::motor(FOCMotor* motor, char* user_command) {
101101

102102
// if target setting
103103
if(isDigit(user_command[0]) || user_command[0] == '-' || user_command[0] == '+'){
104-
printVerbose(F("Target: "));
105104
target(motor, user_command);
106-
println(motor->target);
107105
return;
108106
}
109107

@@ -466,7 +464,7 @@ void Commander::scalar(float* value, char* user_cmd){
466464
void Commander::target(FOCMotor* motor, char* user_cmd, char* separator){
467465
// if no values sent
468466
if(isSentinel(user_cmd[0])) return;
469-
467+
470468
float pos, vel, torque;
471469
char* next_value;
472470
switch(motor->controller){
@@ -546,7 +544,8 @@ void Commander::target(FOCMotor* motor, char* user_cmd, char* separator){
546544
}
547545
break;
548546
}
549-
//println(*value);
547+
printVerbose(F("Target: "));
548+
println(motor->target);
550549
}
551550

552551

0 commit comments

Comments
 (0)