diff options
author | joan <joan@abyz.co.uk> | 2017-05-13 14:22:02 +0100 |
---|---|---|
committer | joan <joan@abyz.co.uk> | 2017-05-13 14:22:02 +0100 |
commit | f032029bf9cda3755c62fc69d3a5fc2f566b7ea3 (patch) | |
tree | 7edc0f7cba12370c7cc6318a7e3bdd922f96e048 /x_pigpiod_if.c | |
parent | c4c8ce50c61f923e3c90d45ef097097fe03fd091 (diff) |
V63
Diffstat (limited to 'x_pigpiod_if.c')
-rw-r--r-- | x_pigpiod_if.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/x_pigpiod_if.c b/x_pigpiod_if.c index cc58d2f..94f2045 100644 --- a/x_pigpiod_if.c +++ b/x_pigpiod_if.c @@ -253,15 +253,13 @@ void t4() set_PWM_range(GPIO, 100); h = notify_open(); - e = notify_begin(h, (1<<GPIO)); - CHECK(4, 1, e, 0, 0, "notify open/begin"); - - time_sleep(1); sprintf(p, "/dev/pigpio%d", h); - f = open(p, O_RDONLY); + e = notify_begin(h, (1<<GPIO)); + CHECK(4, 1, e, 0, 0, "notify open/begin"); + set_PWM_dutycycle(GPIO, 50); time_sleep(4); set_PWM_dutycycle(GPIO, 0); |