File: close.c

package info (click to toggle)
gphoto 0.3.5-6
  • links: PTS
  • area: main
  • in suites: potato
  • size: 2,636 kB
  • ctags: 1,973
  • sloc: ansic: 23,035; sh: 4,851; makefile: 175
file content (13 lines) | stat: -rw-r--r-- 289 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <unistd.h>
#include <termios.h>
#include "defs.h"
#include "transmission.h"
#include "close.h"

void qm100_close(int serialdev)
{
  unsigned char cmd_suspend[QM100_SUSPEND_LEN] = QM100_SUSPEND;

  qm100_transmit(serialdev, cmd_suspend, sizeof(cmd_suspend));
  close(serialdev);
}