~xdavidwu/motion-control

7d21d9723a4ed147a51119fcd31492a78b89097a — xdavidwu 2 years ago 171eaa8
motion-control: signal: set SA_RESTART
1 files changed, 1 insertions(+), 1 deletions(-)

M cmd/motion-control/main.ha
M cmd/motion-control/main.ha => cmd/motion-control/main.ha +1 -1
@@ 84,7 84,7 @@ export fn main() int = {
	const fd = timerfd::new(time::clock::MONOTONIC, 0)!;
	defer io::close(fd)!;
	timerfd::set(fd, (10 * time::MILLISECOND): timerfd::interval, 0)!;
	signal::handle(signal::SIGINT, &sigint);
	signal::handle(signal::SIGINT, &sigint, signal::flag::RESTART);

	timerfd::read(fd)!;
	const acc_readings = ADXL345::read(ADXL345)!;