-
-
Notifications
You must be signed in to change notification settings - Fork 167
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
Add block 'Check Hex String' #710
Conversation
DL7NDR
commented
Dec 27, 2024
changes made as discussed
added documentation
added default value '' for argument digicallsign in class constructor
added default value '' to parameter digicallsign
Checks data from input port "in" from the first byte on for an ASCII string entered in field "Address". If the incoming string matches the entered string, data will be passed to output port "ok", else to output port "fail". Unlike block 'check_address' (label: Check AX.25 address) 'check_address2' does not bitshift the bytes. If you are looking for the ASCII letter "A" (entered in field "Address"), the match would be 0x41. 'check_address' would match on 0x82.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deleted "check_address2" files and reduced length of a line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would have preferred that you had used #691 rather than closing it and opening a new PR, since the previous PR contains the discussion that impacted the design of these changes. But anyhow.
The code looks good except for a few comments that I've made. Can you also squash all the commits into a single one with a descriptive commit message? There is no reason to submit a PR with 21 commits just to add a simple block.
Parenthesis removed.
Cannot find a function for that for github website only user. |
removed the check in L40-L43
I'm a github website -only- user. |
While the Github web UI is useful, it has limited functionality, and many operations need to be done with the
This comes across as "I don't want to learn how to use |
You are totally right, I don't want to learn Not with bad intentions, but one might claim that also your sentence
comes across as "I want the commits to be squashed, but expect others to do the work for me." However, if you still insist on squashed commits, I'll give it another try. Just let me know. |
On the contrary. Having a single commit for each set of changes that can be grouped as one unit is often regarded as good practice (and this means one commit per PR in most cases). gr-satellites (or GNU Radio) don't mention this explicitly in the contributing guidelines, but they stress that commit messages are very important. Having 22 different commits with trivial changes just to add a new block goes against this recommendation. The duty to reformat git history appropriately falls on the PR submitter, not on the project maintainers.
Having to learn some git to contribute to a project that uses git as its VCS is a rather reasonable thing. |
I'll try it with a new pull request to get rid of the unnecessary commits. However, I'm interpreting "commit messages are very important" exactly the other way round. |