X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=blobdiff_plain;f=src%2Fhardware%2Fhameg-hmo%2Fapi.c;h=c293d2b44dd9e7024a06e8e9e7cee7d68d2b2d21;hp=370b6314059fb5dd0a0375f4dfe8a1e000103440;hb=3be42bc22f8b36599a448273c12a76d3e0f7a940;hpb=7fb90f94d62597224509472906fd8a33c3f3a1d2 diff --git a/src/hardware/hameg-hmo/api.c b/src/hardware/hameg-hmo/api.c index 370b6314..c293d2b4 100644 --- a/src/hardware/hameg-hmo/api.c +++ b/src/hardware/hameg-hmo/api.c @@ -769,13 +769,10 @@ static int dev_acquisition_stop(struct sr_dev_inst *sdi, void *cb_data) { struct dev_context *devc; struct sr_scpi_dev_inst *scpi; - struct sr_datafeed_packet packet; (void)cb_data; - packet.type = SR_DF_END; - packet.payload = NULL; - sr_session_send(sdi, &packet); + std_session_send_df_end(sdi, LOG_PREFIX); if (sdi->status != SR_ST_ACTIVE) return SR_ERR_DEV_CLOSED;