X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fgmc-mh-1x-2x%2Fapi.c;h=639cce03aca1d2671e2b22e1a2700dda2c70af22;hb=1c47e0da8f2571bc34dbdc368c3c1f55318c3aa0;hp=890fec47d1bd5ef6da1f1930f5baf46493097d0e;hpb=41812aca436805b0614f2a8f31cf2f8ce494aea0;p=libsigrok.git diff --git a/src/hardware/gmc-mh-1x-2x/api.c b/src/hardware/gmc-mh-1x-2x/api.c index 890fec47..639cce03 100644 --- a/src/hardware/gmc-mh-1x-2x/api.c +++ b/src/hardware/gmc-mh-1x-2x/api.c @@ -22,6 +22,7 @@ * @internal */ +#include #include #include "protocol.h" @@ -164,7 +165,6 @@ static GSList *scan_1x_2x_rs232(struct sr_dev_driver *di, GSList *options) drvc = di->context; drvc->instances = NULL; conn = serialcomm = NULL; - model = METRAHIT_NONE; serialcomm_given = FALSE; sr_spew("scan_1x_2x_rs232() called!"); @@ -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. */