File: erasePic.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 (11 lines) | stat: -rw-r--r-- 267 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#include "defs.h"
#include "transmission.h"
#include "erasePic.h"

void qm100_erasePic(int serialdev, int pic)
{
  unsigned char cmd[QM100_ERASE_LEN] = QM100_ERASE;
  cmd[5] = (pic >> 8) & 0xff;
  cmd[6] = pic & 0xff;
  qm100_transmit(serialdev, cmd, sizeof(cmd));
}