]> sigrok.org Git - libsigrok.git/commitdiff
rigol-ds: Add missing "break" statements.
authorUwe Hermann <redacted>
Sat, 14 Feb 2015 18:23:34 +0000 (19:23 +0100)
committerUwe Hermann <redacted>
Sat, 14 Feb 2015 18:32:25 +0000 (19:32 +0100)
src/hardware/rigol-ds/api.c
src/hardware/rigol-ds/protocol.c

index 3ce237d7b857c0c1c4cf9f4e0dd914d2bb13188d..257bd11ee082df2d7eccfcc473562178380e4783 100644 (file)
@@ -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");
index 9e7863ce0efc685c17beba8edc350596d3f5c894..7db010fd7b0a25f5cb98c027dfa6e3712f4463ad 100644 (file)
@@ -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;