]> sigrok.org Git - libsigrok.git/commitdiff
link-mso19: Style changes to keep lines less than 80 chars
authorPaul Kasemir <redacted>
Mon, 12 Dec 2022 21:11:59 +0000 (14:11 -0700)
committerSoeren Apel <redacted>
Wed, 16 Oct 2024 22:09:43 +0000 (00:09 +0200)
src/hardware/link-mso19/protocol.c

index eeff3bf28979417985b2139cd302a17488b943f0..f7781e1666c34c8d035692b024d28d6c8ef2d580 100644 (file)
@@ -409,7 +409,8 @@ SR_PRIV int mso_receive_data(int fd, int revents, void *cb_data)
        logic.unitsize = sizeof(*logic_out);
 
        sr_analog_init(&analog, &encoding, &meaning, &spec, 3);
-       analog.meaning->channels = g_slist_append(NULL, g_slist_nth_data(sdi->channels, 0));
+       analog.meaning->channels = g_slist_append(
+                       NULL, g_slist_nth_data(sdi->channels, 0));
        analog.meaning->mq = SR_MQ_VOLTAGE;
        analog.meaning->unit = SR_UNIT_VOLT;
        analog.meaning->mqflags = SR_MQFLAG_DC;
@@ -470,8 +471,12 @@ SR_PRIV int mso_configure_channels(const struct sr_dev_inst *sdi)
 
        devc = sdi->priv;
 
-       devc->la_trigger_mask = 0xFF;   //the mask for the LA_TRIGGER (bits set to 0 matter, those set to 1 are ignored).
-       devc->la_trigger = 0x00;        //The value of the LA byte that generates a trigger event (in that mode).
+       /* The mask for the LA_TRIGGER
+        * (bits set to 0 matter, those set to 1 are ignored). */
+       devc->la_trigger_mask = 0xFF;
+       /* The LA byte that generates a trigger event (in that mode).
+        * Set to 0x00 and then bitwise-or in the SR_TRIGGER_ONE bits */
+       devc->la_trigger = 0x00;
        trigger = sr_session_trigger_get(sdi->session);
        if (!trigger)
                return SR_OK;