summaryrefslogtreecommitdiff
path: root/src/triggerpull.c
blob: 3691c5ad13e57ede0a87b61f96a77f546fbc0589 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <unistd.h>
#include "ndelay.h"
#include "open.h"
#include "triggerpull.h"

void triggerpull(void)
{
  int fd;

  fd = open_write("lock/trigger");
  if (fd >= 0) {
    ndelay_on(fd);
    write(fd,"",1); /* if it fails, bummer */
    close(fd);
  }
}