From: Uwe Hermann Date: Sun, 27 Mar 2016 20:53:02 +0000 (+0200) Subject: Drop unneeded std_session_send_df_header() comments. X-Git-Tag: libsigrok-0.5.0~483 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=1c47e0da8f2571bc34dbdc368c3c1f55318c3aa0;p=libsigrok.git Drop unneeded std_session_send_df_header() comments. --- diff --git a/src/hardware/agilent-dmm/api.c b/src/hardware/agilent-dmm/api.c index 82e43783..594b1b73 100644 --- a/src/hardware/agilent-dmm/api.c +++ b/src/hardware/agilent-dmm/api.c @@ -242,7 +242,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data) devc->cb_data = cb_data; - /* Send header packet to the session bus. */ std_session_send_df_header(cb_data, LOG_PREFIX); /* Poll every 100ms, or whenever some data comes in. */ diff --git a/src/hardware/appa-55ii/api.c b/src/hardware/appa-55ii/api.c index 0ed6144a..86f78543 100644 --- a/src/hardware/appa-55ii/api.c +++ b/src/hardware/appa-55ii/api.c @@ -250,7 +250,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, devc->num_samples = 0; devc->start_time = g_get_monotonic_time(); - /* Send header packet to the session bus. */ std_session_send_df_header(cb_data, LOG_PREFIX); /* Poll every 50ms, or whenever some data comes in. */ diff --git a/src/hardware/asix-sigma/api.c b/src/hardware/asix-sigma/api.c index 4ac74bda..c7cc4d6d 100644 --- a/src/hardware/asix-sigma/api.c +++ b/src/hardware/asix-sigma/api.c @@ -400,7 +400,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data) devc->cb_data = cb_data; - /* Send header packet to the session bus. */ std_session_send_df_header(sdi, LOG_PREFIX); /* Add capture source. */ diff --git a/src/hardware/baylibre-acme/api.c b/src/hardware/baylibre-acme/api.c index 0dd6fdba..caafc703 100644 --- a/src/hardware/baylibre-acme/api.c +++ b/src/hardware/baylibre-acme/api.c @@ -392,7 +392,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data) sr_session_source_add_channel(sdi->session, devc->channel, G_IO_IN | G_IO_ERR, 1000, bl_acme_receive_data, (void *)sdi); - /* Send header packet to the session bus. */ std_session_send_df_header(sdi, LOG_PREFIX); devc->start_time = g_get_monotonic_time(); diff --git a/src/hardware/brymen-bm86x/api.c b/src/hardware/brymen-bm86x/api.c index d252208d..71de86d1 100644 --- a/src/hardware/brymen-bm86x/api.c +++ b/src/hardware/brymen-bm86x/api.c @@ -262,7 +262,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, devc = sdi->priv; devc->start_time = g_get_monotonic_time(); - /* Send header packet to the session bus. */ std_session_send_df_header(sdi, LOG_PREFIX); sr_session_source_add(sdi->session, -1, 0, 10, diff --git a/src/hardware/brymen-dmm/api.c b/src/hardware/brymen-dmm/api.c index 911789f8..c0ee0b47 100644 --- a/src/hardware/brymen-dmm/api.c +++ b/src/hardware/brymen-dmm/api.c @@ -217,7 +217,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data) devc->num_samples = 0; devc->starttime = g_get_monotonic_time(); - /* Send header packet to the session bus. */ std_session_send_df_header(cb_data, LOG_PREFIX); /* Poll every 50ms, or whenever some data comes in. */ diff --git a/src/hardware/cem-dt-885x/api.c b/src/hardware/cem-dt-885x/api.c index 8a9a6e1e..ff2edb12 100644 --- a/src/hardware/cem-dt-885x/api.c +++ b/src/hardware/cem-dt-885x/api.c @@ -396,7 +396,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data) devc->num_samples = 0; devc->buf_len = 0; - /* Send header packet to the session bus. */ std_session_send_df_header(cb_data, LOG_PREFIX); /* Poll every 100ms, or whenever some data comes in. */ diff --git a/src/hardware/center-3xx/api.c b/src/hardware/center-3xx/api.c index 7c459ba4..7fe70fa9 100644 --- a/src/hardware/center-3xx/api.c +++ b/src/hardware/center-3xx/api.c @@ -218,7 +218,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, devc->num_samples = 0; devc->starttime = g_get_monotonic_time(); - /* Send header packet to the session bus. */ std_session_send_df_header(cb_data, LOG_PREFIX); /* Poll every 500ms, or whenever some data comes in. */ diff --git a/src/hardware/chronovu-la/api.c b/src/hardware/chronovu-la/api.c index 976180ac..4ea1440a 100644 --- a/src/hardware/chronovu-la/api.c +++ b/src/hardware/chronovu-la/api.c @@ -567,7 +567,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data) devc->cb_data = cb_data; - /* Send header packet to the session bus. */ std_session_send_df_header(sdi, LOG_PREFIX); /* Time when we should be done (for detecting trigger timeouts). */ diff --git a/src/hardware/colead-slm/api.c b/src/hardware/colead-slm/api.c index cd8647df..2841304a 100644 --- a/src/hardware/colead-slm/api.c +++ b/src/hardware/colead-slm/api.c @@ -186,7 +186,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data) devc->cb_data = cb_data; - /* Send header packet to the session bus. */ std_session_send_df_header(cb_data, LOG_PREFIX); /* Poll every 150ms, or whenever some data comes in. */ diff --git a/src/hardware/demo/demo.c b/src/hardware/demo/demo.c index f1b97d21..50780214 100644 --- a/src/hardware/demo/demo.c +++ b/src/hardware/demo/demo.c @@ -868,7 +868,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data) sr_session_source_add(sdi->session, -1, 0, 100, prepare_data, (struct sr_dev_inst *)sdi); - /* Send header packet to the session bus. */ std_session_send_df_header(sdi, LOG_PREFIX); /* We use this timestamp to decide how many more samples to send. */ diff --git a/src/hardware/fluke-dmm/api.c b/src/hardware/fluke-dmm/api.c index 23b8adb7..599f1115 100644 --- a/src/hardware/fluke-dmm/api.c +++ b/src/hardware/fluke-dmm/api.c @@ -266,7 +266,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data) devc->cb_data = cb_data; - /* Send header packet to the session bus. */ std_session_send_df_header(cb_data, LOG_PREFIX); /* Poll every 100ms, or whenever some data comes in. */ diff --git a/src/hardware/ftdi-la/api.c b/src/hardware/ftdi-la/api.c index c9ab6f6a..afc6be45 100644 --- a/src/hardware/ftdi-la/api.c +++ b/src/hardware/ftdi-la/api.c @@ -479,7 +479,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data) devc->samples_sent = 0; devc->bytes_received = 0; - /* Send header packet to the session bus. */ std_session_send_df_header(sdi, LOG_PREFIX); /* Hook up a dummy handler to receive data from the device. */ diff --git a/src/hardware/fx2lafw/api.c b/src/hardware/fx2lafw/api.c index 171ec166..976cfbf9 100644 --- a/src/hardware/fx2lafw/api.c +++ b/src/hardware/fx2lafw/api.c @@ -739,7 +739,6 @@ static int start_transfers(const struct sr_dev_inst *sdi) else devc->send_data_proc = la_send_data_proc; - /* Send header packet to the session bus. */ std_session_send_df_header(sdi, LOG_PREFIX); return SR_OK; diff --git a/src/hardware/gmc-mh-1x-2x/api.c b/src/hardware/gmc-mh-1x-2x/api.c index 85077df4..639cce03 100644 --- a/src/hardware/gmc-mh-1x-2x/api.c +++ b/src/hardware/gmc-mh-1x-2x/api.c @@ -476,7 +476,6 @@ static int dev_acquisition_start_1x_2x_rs232(const struct sr_dev_inst *sdi, devc->settings_ok = FALSE; devc->buflen = 0; - /* Send header packet to the session bus. */ std_session_send_df_header(cb_data, LOG_PREFIX); /* Start timer, if required. */ @@ -507,7 +506,6 @@ static int dev_acquisition_start_2x_bd232(const struct sr_dev_inst *sdi, devc->settings_ok = FALSE; devc->buflen = 0; - /* Send header packet to the session bus. */ std_session_send_df_header(cb_data, LOG_PREFIX); /* Start timer, if required. */ diff --git a/src/hardware/hameg-hmo/api.c b/src/hardware/hameg-hmo/api.c index c293d2b4..b234caa2 100644 --- a/src/hardware/hameg-hmo/api.c +++ b/src/hardware/hameg-hmo/api.c @@ -757,7 +757,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data) sr_scpi_source_add(sdi->session, scpi, G_IO_IN, 50, hmo_receive_data, (void *)sdi); - /* Send header packet to the session bus. */ std_session_send_df_header(cb_data, LOG_PREFIX); devc->current_channel = devc->enabled_channels; diff --git a/src/hardware/hantek-6xxx/api.c b/src/hardware/hantek-6xxx/api.c index 83992ff6..71e62c52 100644 --- a/src/hardware/hantek-6xxx/api.c +++ b/src/hardware/hantek-6xxx/api.c @@ -790,7 +790,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data) if (hantek_6xxx_init(sdi) != SR_OK) return SR_ERR; - /* Send header packet to the session bus. */ std_session_send_df_header(cb_data, LOG_PREFIX); devc->samp_received = 0; diff --git a/src/hardware/hantek-dso/api.c b/src/hardware/hantek-dso/api.c index 52d5fe64..082d05b6 100644 --- a/src/hardware/hantek-dso/api.c +++ b/src/hardware/hantek-dso/api.c @@ -993,7 +993,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data) devc->dev_state = CAPTURE; usb_source_add(sdi->session, drvc->sr_ctx, TICK, handle_event, (void *)sdi); - /* Send header packet to the session bus. */ std_session_send_df_header(cb_data, LOG_PREFIX); return SR_OK; diff --git a/src/hardware/ikalogic-scanalogic2/api.c b/src/hardware/ikalogic-scanalogic2/api.c index 130addc7..3b866d0a 100644 --- a/src/hardware/ikalogic-scanalogic2/api.c +++ b/src/hardware/ikalogic-scanalogic2/api.c @@ -466,7 +466,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data) sr_dbg("Acquisition started successfully."); - /* Send header packet to the session bus. */ std_session_send_df_header(cb_data, LOG_PREFIX); devc->next_state = STATE_SAMPLE; diff --git a/src/hardware/ikalogic-scanaplus/api.c b/src/hardware/ikalogic-scanaplus/api.c index dcd773dd..dd457c80 100644 --- a/src/hardware/ikalogic-scanaplus/api.c +++ b/src/hardware/ikalogic-scanaplus/api.c @@ -379,7 +379,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data) if ((ret = scanaplus_start_acquisition(devc)) < 0) return ret; - /* Send header packet to the session bus. */ std_session_send_df_header(sdi, LOG_PREFIX); /* Hook up a dummy handler to receive data from the device. */ diff --git a/src/hardware/kecheng-kc-330b/api.c b/src/hardware/kecheng-kc-330b/api.c index 7fcb562e..e299a339 100644 --- a/src/hardware/kecheng-kc-330b/api.c +++ b/src/hardware/kecheng-kc-330b/api.c @@ -438,7 +438,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, devc->cb_data = cb_data; devc->num_samples = 0; - /* Send header packet to the session bus. */ std_session_send_df_header(cb_data, LOG_PREFIX); if (devc->data_source == DATA_SOURCE_LIVE) { diff --git a/src/hardware/kern-scale/api.c b/src/hardware/kern-scale/api.c index 0443f5e6..6801abfe 100644 --- a/src/hardware/kern-scale/api.c +++ b/src/hardware/kern-scale/api.c @@ -206,7 +206,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data) devc->num_samples = 0; devc->starttime = g_get_monotonic_time(); - /* Send header packet to the session bus. */ std_session_send_df_header(cb_data, LOG_PREFIX); /* Poll every 50ms, or whenever some data comes in. */ diff --git a/src/hardware/korad-kaxxxxp/api.c b/src/hardware/korad-kaxxxxp/api.c index 8753b1a5..d9d3a9ce 100644 --- a/src/hardware/korad-kaxxxxp/api.c +++ b/src/hardware/korad-kaxxxxp/api.c @@ -392,7 +392,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data) devc = sdi->priv; devc->cb_data = cb_data; - /* Send header packet to the session bus. */ std_session_send_df_header(cb_data, LOG_PREFIX); devc->starttime = g_get_monotonic_time(); diff --git a/src/hardware/lascar-el-usb/api.c b/src/hardware/lascar-el-usb/api.c index 1934c9e2..40670cec 100644 --- a/src/hardware/lascar-el-usb/api.c +++ b/src/hardware/lascar-el-usb/api.c @@ -356,7 +356,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data) sr_dbg("Starting log retrieval."); - /* Send header packet to the session bus. */ std_session_send_df_header(cb_data, LOG_PREFIX); interval = (devc->config[0x1c] | (devc->config[0x1d] << 8)) * 1000; diff --git a/src/hardware/link-mso19/api.c b/src/hardware/link-mso19/api.c index a0f033a8..4fcc87a0 100644 --- a/src/hardware/link-mso19/api.c +++ b/src/hardware/link-mso19/api.c @@ -446,7 +446,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data) /* Reset trigger state. */ devc->trigger_state = 0x00; - /* Send header packet to the session bus. */ std_session_send_df_header(cb_data, LOG_PREFIX); /* Our first channel is analog, the other 8 are of type 'logic'. */ diff --git a/src/hardware/manson-hcs-3xxx/api.c b/src/hardware/manson-hcs-3xxx/api.c index 917a7c0f..ad425c16 100644 --- a/src/hardware/manson-hcs-3xxx/api.c +++ b/src/hardware/manson-hcs-3xxx/api.c @@ -398,7 +398,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data) devc = sdi->priv; devc->cb_data = cb_data; - /* Send header packet to the session bus. */ std_session_send_df_header(cb_data, LOG_PREFIX); devc->starttime = g_get_monotonic_time(); diff --git a/src/hardware/maynuo-m97/api.c b/src/hardware/maynuo-m97/api.c index 090bae3e..46b3e0ea 100644 --- a/src/hardware/maynuo-m97/api.c +++ b/src/hardware/maynuo-m97/api.c @@ -472,7 +472,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, maynuo_m97_receive_data, (void *)sdi)) != SR_OK) return ret; - /* Send header packet to the session bus. */ std_session_send_df_header(sdi, LOG_PREFIX); devc->num_samples = 0; diff --git a/src/hardware/mic-985xx/api.c b/src/hardware/mic-985xx/api.c index 775bcc04..fcb0db46 100644 --- a/src/hardware/mic-985xx/api.c +++ b/src/hardware/mic-985xx/api.c @@ -226,7 +226,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, devc->num_samples = 0; devc->starttime = g_get_monotonic_time(); - /* Send header packet to the session bus. */ std_session_send_df_header(cb_data, LOG_PREFIX); /* Poll every 100ms, or whenever some data comes in. */ diff --git a/src/hardware/norma-dmm/api.c b/src/hardware/norma-dmm/api.c index 9e0be393..59715ec4 100644 --- a/src/hardware/norma-dmm/api.c +++ b/src/hardware/norma-dmm/api.c @@ -262,7 +262,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data) devc->cb_data = cb_data; - /* Send header packet to the session bus. */ std_session_send_df_header(cb_data, LOG_PREFIX); /* Start timer, if required. */ diff --git a/src/hardware/openbench-logic-sniffer/api.c b/src/hardware/openbench-logic-sniffer/api.c index ddd33e14..d4cd1c2d 100644 --- a/src/hardware/openbench-logic-sniffer/api.c +++ b/src/hardware/openbench-logic-sniffer/api.c @@ -570,7 +570,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, devc->cnt_bytes = devc->cnt_samples = devc->cnt_samples_rle = 0; memset(devc->sample, 0, 4); - /* Send header packet to the session bus. */ std_session_send_df_header(cb_data, LOG_PREFIX); /* If the device stops sending for longer than it takes to send a byte, diff --git a/src/hardware/pipistrello-ols/api.c b/src/hardware/pipistrello-ols/api.c index d5ec1ef6..d015d7d5 100644 --- a/src/hardware/pipistrello-ols/api.c +++ b/src/hardware/pipistrello-ols/api.c @@ -689,7 +689,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, devc->cnt_bytes = devc->cnt_samples = devc->cnt_samples_rle = 0; memset(devc->sample, 0, 4); - /* Send header packet to the session bus. */ std_session_send_df_header(cb_data, LOG_PREFIX); /* Hook up a dummy handler to receive data from the device. */ diff --git a/src/hardware/rigol-ds/api.c b/src/hardware/rigol-ds/api.c index 97757ecf..259ca169 100644 --- a/src/hardware/rigol-ds/api.c +++ b/src/hardware/rigol-ds/api.c @@ -1031,7 +1031,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data) sr_scpi_source_add(sdi->session, scpi, G_IO_IN, 50, rigol_ds_receive, (void *)sdi); - /* Send header packet to the session bus. */ std_session_send_df_header(cb_data, LOG_PREFIX); devc->channel_entry = devc->enabled_channels; diff --git a/src/hardware/saleae-logic16/api.c b/src/hardware/saleae-logic16/api.c index bee0ea4a..bf41b759 100644 --- a/src/hardware/saleae-logic16/api.c +++ b/src/hardware/saleae-logic16/api.c @@ -789,7 +789,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data) usb_source_add(sdi->session, devc->ctx, timeout, receive_data, (void *)sdi); - /* Send header packet to the session bus. */ std_session_send_df_header(cb_data, LOG_PREFIX); if ((ret = logic16_start_acquisition(sdi)) != SR_OK) { diff --git a/src/hardware/serial-dmm/api.c b/src/hardware/serial-dmm/api.c index a589d013..03af2d58 100644 --- a/src/hardware/serial-dmm/api.c +++ b/src/hardware/serial-dmm/api.c @@ -234,7 +234,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data) devc->num_samples = 0; devc->starttime = g_get_monotonic_time(); - /* Send header packet to the session bus. */ std_session_send_df_header(cb_data, LOG_PREFIX); /* Poll every 50ms, or whenever some data comes in. */ diff --git a/src/hardware/sysclk-lwla/protocol.c b/src/hardware/sysclk-lwla/protocol.c index d7f8da83..b4c3171e 100644 --- a/src/hardware/sysclk-lwla/protocol.c +++ b/src/hardware/sysclk-lwla/protocol.c @@ -573,10 +573,9 @@ SR_PRIV int lwla_start_acquisition(const struct sr_dev_inst *sdi) } ret = submit_request(sdi, STATE_START_CAPTURE); - if (ret == SR_OK) { - /* Send header packet to the session bus. */ + if (ret == SR_OK) ret = std_session_send_df_header(sdi, LOG_PREFIX); - } + if (ret != SR_OK) { usb_source_remove(sdi->session, drvc->sr_ctx); clear_acquisition_state(sdi); diff --git a/src/hardware/teleinfo/api.c b/src/hardware/teleinfo/api.c index dbf7f03d..667ce33d 100644 --- a/src/hardware/teleinfo/api.c +++ b/src/hardware/teleinfo/api.c @@ -217,7 +217,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data) devc->num_samples = 0; devc->start_time = g_get_monotonic_time(); - /* Send header packet to the session bus. */ std_session_send_df_header(cb_data, LOG_PREFIX); /* Poll every 50ms, or whenever some data comes in. */ diff --git a/src/hardware/testo/api.c b/src/hardware/testo/api.c index 97aa7ac4..691ba8f5 100644 --- a/src/hardware/testo/api.c +++ b/src/hardware/testo/api.c @@ -470,7 +470,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data) devc->num_samples = 0; devc->reply_size = 0; - /* Send header packet to the session bus. */ std_session_send_df_header(cb_data, LOG_PREFIX); usb_source_add(sdi->session, drvc->sr_ctx, 100, diff --git a/src/hardware/tondaj-sl-814/api.c b/src/hardware/tondaj-sl-814/api.c index 5e83defe..07a8ecae 100644 --- a/src/hardware/tondaj-sl-814/api.c +++ b/src/hardware/tondaj-sl-814/api.c @@ -173,7 +173,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, devc = sdi->priv; devc->cb_data = cb_data; - /* Send header packet to the session bus. */ std_session_send_df_header(cb_data, LOG_PREFIX); /* Poll every 500ms, or whenever some data comes in. */ diff --git a/src/hardware/uni-t-dmm/api.c b/src/hardware/uni-t-dmm/api.c index 250e92fc..ffafcd08 100644 --- a/src/hardware/uni-t-dmm/api.c +++ b/src/hardware/uni-t-dmm/api.c @@ -199,7 +199,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data) devc->starttime = g_get_monotonic_time(); - /* Send header packet to the session bus. */ std_session_send_df_header(sdi, LOG_PREFIX); sr_session_source_add(sdi->session, -1, 0, 10 /* poll_timeout */, diff --git a/src/hardware/uni-t-ut32x/api.c b/src/hardware/uni-t-ut32x/api.c index 433729e2..2c63c279 100644 --- a/src/hardware/uni-t-ut32x/api.c +++ b/src/hardware/uni-t-ut32x/api.c @@ -303,7 +303,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, return SR_ERR; } - /* Send header packet to the session bus. */ std_session_send_df_header(cb_data, LOG_PREFIX); if (!(devc->xfer = libusb_alloc_transfer(0))) diff --git a/src/hardware/victor-dmm/api.c b/src/hardware/victor-dmm/api.c index 19539ede..f9435256 100644 --- a/src/hardware/victor-dmm/api.c +++ b/src/hardware/victor-dmm/api.c @@ -381,7 +381,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data) usb = sdi->conn; devc->cb_data = cb_data; - /* Send header packet to the session bus. */ std_session_send_df_header(cb_data, LOG_PREFIX); usb_source_add(sdi->session, drvc->sr_ctx, 100, diff --git a/src/hardware/zeroplus-logic-cube/api.c b/src/hardware/zeroplus-logic-cube/api.c index 3681352e..ab4c3cc4 100644 --- a/src/hardware/zeroplus-logic-cube/api.c +++ b/src/hardware/zeroplus-logic-cube/api.c @@ -578,7 +578,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, sr_info("Ramsize trigger = 0x%x.", ramsize_trigger); sr_info("Memory size = 0x%x.", memory_size); - /* Send header packet to the session bus. */ std_session_send_df_header(cb_data, LOG_PREFIX); /* Check for empty capture */ diff --git a/src/lcr/es51919.c b/src/lcr/es51919.c index 89656530..cbe51179 100644 --- a/src/lcr/es51919.c +++ b/src/lcr/es51919.c @@ -927,7 +927,6 @@ SR_PRIV int es51919_serial_acquisition_start(const struct sr_dev_inst *sdi, dev_limit_counter_start(&devc->frame_count); dev_time_counter_start(&devc->time_count); - /* Send header packet to the session bus. */ std_session_send_df_header(cb_data, LOG_PREFIX); /* Poll every 50ms, or whenever some data comes in. */ diff --git a/src/session_driver.c b/src/session_driver.c index 1db2cdff..3b801ffc 100644 --- a/src/session_driver.c +++ b/src/session_driver.c @@ -367,7 +367,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data) return SR_ERR; } - /* Send header packet to the session bus. */ std_session_send_df_header(sdi, LOG_PREFIX); /* freewheeling source */