X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=input%2Finput_binary.c;h=2f1462d07dc5f9424e34bd308d35224c9466ef31;hb=a61b0e6a35fdf06c98a2304e186a3a17c9fbf8d8;hp=113b34f6effeaedbdc7dbe3f411246f5d6191e81;hpb=757b8c628a5b64f8b6b166044b1b3ac1ccf797dc;p=libsigrok.git diff --git a/input/input_binary.c b/input/input_binary.c index 113b34f6..2f1462d0 100644 --- a/input/input_binary.c +++ b/input/input_binary.c @@ -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;