X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fhardware%2Fhung-chang-dso-2100%2Fapi.c;h=bad92c00b8f7344517866da9573d28cc72e8815f;hb=276d7b18bbe71d061544c2d2989330b38ce86df3;hp=842bdc212bfecce7872b81f3e7fc4bd7947542c6;hpb=15a5bfe4815f9991a9bb532c05d6244a1818a0e4;p=libsigrok.git diff --git a/src/hardware/hung-chang-dso-2100/api.c b/src/hardware/hung-chang-dso-2100/api.c index 842bdc21..bad92c00 100644 --- a/src/hardware/hung-chang-dso-2100/api.c +++ b/src/hardware/hung-chang-dso-2100/api.c @@ -560,10 +560,12 @@ static int config_commit(const struct sr_dev_inst *sdi) break; case 0x00: state = 0x01; + /* Fallthrough */ default: ret = hung_chang_dso_2100_move_to(sdi, 1); if (ret != SR_OK) return ret; + /* Fallthrough */ case 0x01: hung_chang_dso_2100_write_mbox(sdi->conn, 4); } @@ -682,7 +684,7 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi) if (ret != SR_OK) return ret; - std_session_send_df_header(sdi, LOG_PREFIX); + std_session_send_df_header(sdi); sr_session_source_add(sdi->session, -1, 0, 8, hung_chang_dso_2100_poll, (void *)sdi); @@ -695,7 +697,7 @@ SR_PRIV int hung_chang_dso_2100_dev_acquisition_stop(const struct sr_dev_inst *s if (sdi->status != SR_ST_ACTIVE) return SR_ERR_DEV_CLOSED; - std_session_send_df_end(sdi, LOG_PREFIX); + std_session_send_df_end(sdi); sr_session_source_remove(sdi->session, -1); hung_chang_dso_2100_move_to(sdi, 1);