From 056cd30629bb4f9cf3789a0520e6921d7d359fbd Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Thu, 12 Jan 2017 03:02:05 -0500 Subject: [PATCH] Servo test: fix style --- src/systemcmds/tests/test_servo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/systemcmds/tests/test_servo.c b/src/systemcmds/tests/test_servo.c index 70ca16ecd2..80f8c7c934 100644 --- a/src/systemcmds/tests/test_servo.c +++ b/src/systemcmds/tests/test_servo.c @@ -116,8 +116,10 @@ int test_servo(int argc, char *argv[]) printf("Advancing channel 1 to 1800\n"); result = ioctl(fd, PWM_SERVO_SET(1), 1800); out: + if (fd >= 0) { close(fd); } + return 0; }