X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fsysclk-lwla%2Fprotocol.c;h=ce922374e845b6f5d419c7c1b4cd1f37f77c3d84;hb=2cb63065f525655d3abccc1b26edd7275937b034;hp=f1ae8b3d5d1fe1c1b146fa5d41ddb3eeb0f7ad50;hpb=155b680da482cea2381becb73c51cfb838bff31e;p=libsigrok.git diff --git a/src/hardware/sysclk-lwla/protocol.c b/src/hardware/sysclk-lwla/protocol.c index f1ae8b3d..ce922374 100644 --- a/src/hardware/sysclk-lwla/protocol.c +++ b/src/hardware/sysclk-lwla/protocol.c @@ -279,7 +279,7 @@ static void issue_read_end(const struct sr_dev_inst *sdi) devc->state = STATE_READ_END; } -/* Decode an incoming reponse to a buffer fill level request and act on it +/* Decode an incoming response to a buffer fill level request and act on it * as appropriate. Note that this function changes the device context state. */ static void process_capture_length(const struct sr_dev_inst *sdi) @@ -768,7 +768,7 @@ SR_PRIV int lwla_convert_trigger(const struct sr_dev_inst *sdi) if (!match->channel->enabled) /* Ignore disabled channels with a trigger. */ continue; - channel_index = 1 << match->channel->index; + channel_index = (uint64_t)1 << match->channel->index; devc->trigger_mask |= channel_index; switch (match->match) { case SR_TRIGGER_ONE: