]> sigrok.org Git - libsigrok.git/blobdiff - input/input_binary.c
change all DF_LOGIC* to a single DF_LOGIC type
[libsigrok.git] / input / input_binary.c
index 113b34f6effeaedbdc7dbe3f411246f5d6191e81..7c9f96ba9f3d9a99bfa4b42a8344260f879b4b7e 100644 (file)
@@ -57,7 +57,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;