]> sigrok.org Git - libsigrok.git/blobdiff - input/input_binary.c
configure: Add --enable-demo option.
[libsigrok.git] / input / input_binary.c
index 113b34f6effeaedbdc7dbe3f411246f5d6191e81..2f1462d07dc5f9424e34bd308d35224c9466ef31 100644 (file)
@@ -48,7 +48,8 @@ static int in_loadfile(const char *filename)
        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);
@@ -57,7 +58,8 @@ static int in_loadfile(const char *filename)
        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;