Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jolinux patch 1 was fix bug #1188 #10

Closed
wants to merge 7 commits into from

Conversation

jolinux
Copy link
Contributor

@jolinux jolinux commented Jun 14, 2018

fix TAB and uint8_t

@jolinux jolinux closed this Jun 15, 2018
@jolinux
Copy link
Contributor Author

jolinux commented Jun 15, 2018

a mistake

byteit101 pushed a commit to byteit101/libsigrok that referenced this pull request May 21, 2023
Rephrase the sr_scpi_get_block() routine to increase readability and
robustness. Address data type issues (signedness). Rename variables to
better reflect their purpose. Concentrate more comments before larger
instruction sequences. Mention instructions' purpose first before more
detailled discussion, to speedup reader's navigation in the complex
logic. Reword the discussion of definite and indefinite length blocks.
Add more diagnostics. Although the text diff is huge, the spirit of
the previous implementation is kept.

Rephrase loops when the motivation for their phrasing was uncertain:
Replace "if (cond) do { ... } while (cond)" with just "while (cond)".
Which reduces nesting and indentation. Use "while" instead of "do while"
when it's obvious that the body does initially execute. It's believed
that behaviour remains identical.

This commit also changes behaviour: Re-arm timeouts more often after
receive data was seen. Which helps slow transports, yet does not harm
fast transports which already accumulated the input data for the next
stage of processing. Check for zero length in more locations (accept
phrases like "sigrokproject#10" as well).

There is excessive diagnostics. Needs more adjustment (wording, levels).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant