pbio/motor_process: restart timer instead of reset
This ensures we (re)start counting from this point. This ensures a slightly more constant (if slower) loop time on ev3dev, which takes a long time to run the control update.
While technically less acurate on stm32, the difference is negligible.
@@ -76,7 +76,7 @@ PROCESS_THREAD(pbio_motor_process, ev, data) {
}
// Reset timer to wait for next update
- etimer_reset(&timer);
+ etimer_restart(&timer);
}
PROCESS_END();
