diff options
Diffstat (limited to 'vibrator/vibrator.c')
-rw-r--r-- | vibrator/vibrator.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vibrator/vibrator.c b/vibrator/vibrator.c index f946ce1..b1c98eb 100644 --- a/vibrator/vibrator.c +++ b/vibrator/vibrator.c @@ -21,6 +21,11 @@ #include <fcntl.h> #include <errno.h> + +#ifdef USE_ALTERNATIVE_VIBRATOR +extern int sendit(int timeout_ms); +#else + #define THE_DEVICE "/sys/class/timed_output/vibrator/enable" int vibrator_exists() @@ -63,6 +68,8 @@ static int sendit(int timeout_ms) return (ret == nwr) ? 0 : -1; } +#endif + int vibrator_on(int timeout_ms) { /* constant on, up to maximum allowed time */ |