]> sigrok.org Git - libsigrok.git/blobdiff - hardware/demo/demo.c
Support for analog probes
[libsigrok.git] / hardware / demo / demo.c
index b5598a52ff4ebc2e3930c4cf1f723a3faeaba913..cb627ef56a8947f3ca12cde7445e38922334db64 100644 (file)
@@ -258,8 +258,9 @@ static int receive_data(int fd, int revents, void *user_data)
 
        z = read(fd, &c, BUFSIZE);
        if (z > 0) {
-               packet.type = DF_LOGIC8;
+               packet.type = DF_LOGIC;
                packet.length = z;
+               packet.unitsize = 1;
                packet.payload = c;
                session_bus(user_data, &packet);
        }