From: Paul Kasemir Date: Fri, 4 Dec 2020 04:49:35 +0000 (-0700) Subject: link-mso19: Remove unused (and invalid) LED function X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=3b01021741f5132f2c9ee23f3fd7dfcbd7041ad9;p=libsigrok.git link-mso19: Remove unused (and invalid) LED function --- diff --git a/src/hardware/link-mso19/protocol.c b/src/hardware/link-mso19/protocol.c index cce62904..ec88f097 100644 --- a/src/hardware/link-mso19/protocol.c +++ b/src/hardware/link-mso19/protocol.c @@ -265,20 +265,6 @@ SR_PRIV int mso_reset_fsm(struct sr_dev_inst *sdi) return mso_send_control_message(devc->serial, ARRAY_AND_SIZE(ops)); } -SR_PRIV int mso_toggle_led(struct sr_dev_inst *sdi, int state) -{ - struct dev_context *devc = sdi->priv; - uint16_t ops[1]; - - devc->ctlbase1 &= ~BIT_CTL1_LED; - if (state) - devc->ctlbase1 |= BIT_CTL1_LED; - ops[0] = mso_trans(REG_CTL1, devc->ctlbase1); - - sr_dbg("Requesting LED toggle."); - return mso_send_control_message(devc->serial, ARRAY_AND_SIZE(ops)); -} - SR_PRIV void stop_acquisition(const struct sr_dev_inst *sdi) { struct dev_context *devc; diff --git a/src/hardware/link-mso19/protocol.h b/src/hardware/link-mso19/protocol.h index f1b4a6dc..6dc26ac3 100644 --- a/src/hardware/link-mso19/protocol.h +++ b/src/hardware/link-mso19/protocol.h @@ -134,7 +134,6 @@ SR_PRIV int mso_force_capture(struct sr_dev_inst *sdi); SR_PRIV int mso_dac_out(const struct sr_dev_inst *sdi, uint16_t val); SR_PRIV uint16_t mso_calc_raw_from_mv(struct dev_context *devc); SR_PRIV int mso_reset_fsm(struct sr_dev_inst *sdi); -SR_PRIV int mso_toggle_led(struct sr_dev_inst *sdi, int state); SR_PRIV int mso_configure_channels(const struct sr_dev_inst *sdi); SR_PRIV void stop_acquisition(const struct sr_dev_inst *sdi);