Skip to content

Commit 6874508

Browse files
committed
examples changed
1 parent 98712b6 commit 6874508

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ void doB(){encoder.handleB();}
3939

4040
// commander interface
4141
Commander command = Commander(Serial);
42-
void onA(String cmd){ command.motor(&motor, cmd); }
42+
void onA(char* cmd){ command.motor(&motor, cmd); }
4343

4444
void setup() {
4545

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

Lines changed: 1 addition & 1 deletion
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 onA(String cmd){ command.motor(&motor, cmd); }
45+
void onA(char* cmd){ command.motor(&motor, cmd); }
4646

4747
void setup() {
4848

examples/motor_commands_serial_examples/encoder/full_control_serial/full_control_serial.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ void doB(){encoder.handleB();}
5656

5757
// commander interface
5858
Commander command = Commander(Serial);
59-
void onA(String cmd){ command.motor(&motor, cmd); }
59+
void onA(char* cmd){ command.motor(&motor, cmd); }
6060

6161
void setup() {
6262

examples/motor_commands_serial_examples/hall_sensor/full_control_serial/full_control_serial.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ PciListenerImp listenC(sensor.pinC, doC);
6262

6363
// commander interface
6464
Commander command = Commander(Serial);
65-
void onA(String cmd){ command.motor(&motor, cmd); }
65+
void onA(char* cmd){ command.motor(&motor, cmd); }
6666

6767

6868
void setup() {

examples/motor_commands_serial_examples/magnetic_sensor/full_control_serial/full_control_serial.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ BLDCDriver3PWM driver = BLDCDriver3PWM(9, 5, 6, 8);
5555

5656
// commander interface
5757
Commander command = Commander(Serial);
58-
void onA(String cmd){ command.motor(&motor, cmd); }
58+
void onA(char* cmd){ command.motor(&motor, cmd); }
5959

6060
void setup() {
6161

0 commit comments

Comments
 (0)