device = device_new(NULL, 0, num_probes);
header.feed_version = 1;
- header.num_probes = num_probes;
+ header.num_logic_probes = num_probes;
+ header.num_analog_probes = 0; /* FIXME */
header.protocol_id = PROTO_RAW;
header.samplerate = 0;
gettimeofday(&header.starttime, NULL);
packet.payload = &header;
session_bus(device, &packet);
- packet.type = DF_LOGIC8;
+ packet.type = DF_LOGIC;
+ packet.unitsize = 1;
packet.payload = buffer;
while ((size = read(fd, buffer, CHUNKSIZE)) > 0) {
packet.length = size;