From: Paul Kasemir Date: Mon, 12 Dec 2022 21:11:59 +0000 (-0700) Subject: link-mso19: Style changes to keep lines less than 80 chars X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=13c327f36f7b9621a02bf1e0b9ccb3375c963eab;p=libsigrok.git link-mso19: Style changes to keep lines less than 80 chars --- diff --git a/src/hardware/link-mso19/protocol.c b/src/hardware/link-mso19/protocol.c index eeff3bf2..f7781e16 100644 --- a/src/hardware/link-mso19/protocol.c +++ b/src/hardware/link-mso19/protocol.c @@ -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;