From: Uwe Hermann Date: Sat, 14 Feb 2015 18:23:34 +0000 (+0100) Subject: rigol-ds: Add missing "break" statements. X-Git-Tag: libsigrok-0.4.0~640 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=f44f7e61a37f0b42dc06e85278b0b152ddc70ab2;p=libsigrok.git rigol-ds: Add missing "break" statements. --- diff --git a/src/hardware/rigol-ds/api.c b/src/hardware/rigol-ds/api.c index 3ce237d7..257bd11e 100644 --- a/src/hardware/rigol-ds/api.c +++ b/src/hardware/rigol-ds/api.c @@ -532,6 +532,7 @@ static int config_get(uint32_t key, GVariant **data, const struct sr_dev_inst *s break; case SR_CONF_NUM_VDIV: *data = g_variant_new_int32(NUM_VDIV); + break; case SR_CONF_DATA_SOURCE: if (devc->data_source == DATA_SOURCE_LIVE) *data = g_variant_new_string("Live"); diff --git a/src/hardware/rigol-ds/protocol.c b/src/hardware/rigol-ds/protocol.c index 9e7863ce..7db010fd 100644 --- a/src/hardware/rigol-ds/protocol.c +++ b/src/hardware/rigol-ds/protocol.c @@ -520,6 +520,7 @@ SR_PRIV int rigol_ds_receive(int fd, int revents, void *cb_data) return TRUE; default: sr_err("BUG: Unknown event target encountered"); + break; } ch = devc->channel_entry->data;