saleae-logic16: Minor whitespace fixes, cosmetics.
This commit is contained in:
parent
1b822521f7
commit
b9a53103cf
|
@ -627,6 +627,9 @@ static int configure_channels(const struct sr_dev_inst *sdi)
|
||||||
struct sr_channel *ch;
|
struct sr_channel *ch;
|
||||||
GSList *l;
|
GSList *l;
|
||||||
uint16_t channel_bit;
|
uint16_t channel_bit;
|
||||||
|
#ifdef WORDS_BIGENDIAN
|
||||||
|
int i;
|
||||||
|
#endif
|
||||||
|
|
||||||
devc = sdi->priv;
|
devc = sdi->priv;
|
||||||
|
|
||||||
|
@ -657,7 +660,6 @@ static int configure_channels(const struct sr_dev_inst *sdi)
|
||||||
devc->unitsize = 2;
|
devc->unitsize = 2;
|
||||||
} else {
|
} else {
|
||||||
#ifdef WORDS_BIGENDIAN
|
#ifdef WORDS_BIGENDIAN
|
||||||
int i;
|
|
||||||
for (i = 0; i < devc->num_channels; i++)
|
for (i = 0; i < devc->num_channels; i++)
|
||||||
devc->channel_masks[i] >>= 8;
|
devc->channel_masks[i] >>= 8;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -790,7 +790,7 @@ SR_PRIV void logic16_receive_transfer(struct libusb_transfer *transfer)
|
||||||
transfer->actual_length, devc->unitsize);
|
transfer->actual_length, devc->unitsize);
|
||||||
|
|
||||||
if (converted_length > 0) {
|
if (converted_length > 0) {
|
||||||
/* Cap sample count if needed */
|
/* Cap sample count if needed. */
|
||||||
if (devc->limit_samples &&
|
if (devc->limit_samples &&
|
||||||
(uint64_t)devc->num_samples + converted_length
|
(uint64_t)devc->num_samples + converted_length
|
||||||
> devc->limit_samples) {
|
> devc->limit_samples) {
|
||||||
|
|
Loading…
Reference in New Issue