error correction

This commit is contained in:
Thomas Klaehn 2016-09-19 16:21:18 +02:00
parent 14e353ce47
commit 4ead1569c1

View File

@ -56,7 +56,7 @@ static void collision_ctrl_loop(void *arg)
sprintf(print_buffer, "start turning...\r\n");
shell_write(print_buffer, strlen(print_buffer));
drive_ctrl_turn_left();
sleep_ms(drv_read(&rng, Null, 0) % 3500 + 500); // rand between 500 and 4000
sleep_ms(drv_read(&rng, NULL, 0) % 3500 + 500); // rand between 500 and 4000
drive_ctrl_halt();
sprintf(print_buffer, "restart forward...\r\n");