summaryrefslogtreecommitdiff
path: root/n/line-follower/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'n/line-follower/src/main.c')
-rw-r--r--n/line-follower/src/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/n/line-follower/src/main.c b/n/line-follower/src/main.c
index 1c89604..96c4629 100644
--- a/n/line-follower/src/main.c
+++ b/n/line-follower/src/main.c
@@ -213,16 +213,16 @@ proto_callback (uint8_t cmd, uint8_t argc, proto_arg_t argv[])
break;
case c ('l', 0):
motor_mode = 3;
- linesensor_init ();
+ linesensor_reset ();
break;
case c ('l', 1):
motor_mode = 3;
- linesensor_init ();
+ linesensor_reset ();
linefol_max_pwm = argv[0];
break;
case c ('l', 5):
motor_mode = 3;
- linesensor_init ();
+ linesensor_reset ();
linefol_max_pwm = argv[0];
speed_kp = argv[1];
speed_ki = argv[2];