From 559bb87794fa6432479c7351d77a7a7740a3bc85 Mon Sep 17 00:00:00 2001 From: GIHO KOH <loapp@ajou.ac.kr> Date: Tue, 11 Jun 2024 23:54:13 +0900 Subject: [PATCH] Update actuator.c --- actuator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actuator.c b/actuator.c index 886dc79..7c240a8 100644 --- a/actuator.c +++ b/actuator.c @@ -1,5 +1,4 @@ -//새 명령 시행 도중에 오면 그 새로운 명령 시행하기 #include <pthread.h> #include <fcntl.h> #include <stdio.h> @@ -555,7 +554,7 @@ static int PWMWriteDutyCycle(int pwmnum, int value) { char path[VALUE_MAX]; int fd, byte; - // TODO: Enter the duty_cycle path. + // by koh TODO: Enter the duty_cycle path. snprintf(path, VALUE_MAX, "/sys/class/pwm/pwmchip0/pwm0/duty_cycle", pwmnum); fd = open(path, O_WRONLY); if (-1 == fd) { @@ -573,3 +572,4 @@ static int PWMWriteDutyCycle(int pwmnum, int value) { return (0); } + -- GitLab