X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fsession_driver.c;h=79a3b37b3e5fb0a1519e28851e779d1e16200c4d;hb=07d4e86316cad233abe1d5890cd56de35e69618f;hp=99d1c6cf3473e6362b3da6b2cd8b10fda48e23a6;hpb=6cdb1da6c95d006d423a6e8c9ed7d6580d85bba4;p=libsigrok.git diff --git a/src/session_driver.c b/src/session_driver.c index 99d1c6cf..79a3b37b 100644 --- a/src/session_driver.c +++ b/src/session_driver.c @@ -31,7 +31,7 @@ /* size of payloads sent across the session bus */ /** @cond PRIVATE */ -#define CHUNKSIZE (512 * 1024) +#define CHUNKSIZE (4 * 1024 * 1024) /** @endcond */ SR_PRIV struct sr_dev_driver session_driver_info; @@ -142,7 +142,8 @@ static gboolean stream_session_data(struct sr_dev_inst *sdi) if (vdev->cur_analog_channel != 0) { packet.type = SR_DF_ANALOG; packet.payload = &analog; - sr_analog_init(&analog, &encoding, &meaning, &spec, 0); + /* TODO: Use proper 'digits' value for this device (and its modes). */ + sr_analog_init(&analog, &encoding, &meaning, &spec, 2); analog.meaning->channels = g_slist_prepend(NULL, g_array_index(vdev->analog_channels, struct sr_channel *, vdev->cur_analog_channel - 1));