Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Some clarifications and corrections #233

Merged
merged 5 commits into from
Jun 23, 2021
Merged

Some clarifications and corrections #233

merged 5 commits into from
Jun 23, 2021

Conversation

huntc
Copy link
Contributor

@huntc huntc commented Jun 22, 2021

Some clarifications and corrections having used probe-run for the first time. Hope that they make sense.

Some clarifications and corrections having used probe-run for the first time. Hope that they make sense.


``` toml
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
runner = "probe-run --chip ${PROBE_RUN_CHIP}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

${PROBE_RUN_CHIP} is not just string to replace. It is environment variable.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. However, I felt that the env var approach was covered by the next few paragraphs. Also, the way it is now confused me - I actually thought that it represented some cargo related variable.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd agree to keep the generic example, but would also be fine with additionally having a specific one. What do you think about moving the generic one down to where the env var approach is mentioned?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. Can you please make a suggestion and then I'll commit it. Thanks.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sadly, I can't, since github only allows me to make suggestions for lines you touched and the ones closely above and below. I will write my suggestion here in a moment.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's the whole section "1. Set the Cargo runner".

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've deleted it here and added it as a suggestion for line 39, but is a change for the whole section.



``` toml
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
runner = "probe-run --chip ${PROBE_RUN_CHIP}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd agree to keep the generic example, but would also be fine with additionally having a specific one. What do you think about moving the generic one down to where the env var approach is mentioned?

README.md Outdated Show resolved Hide resolved
Co-authored-by: Johann Hemmann <[email protected]>
README.md Outdated Show resolved Hide resolved
Co-authored-by: Johann Hemmann <[email protected]>
@huntc
Copy link
Contributor Author

huntc commented Jun 23, 2021

All changes are in

@Urhengulas
Copy link
Member

Urhengulas commented Jun 23, 2021

All changes are in

Yes, only one fix: I guess we talked past each other for the last change. I added it as a suggestion for one line, but this isn't how it should be. It is a replacement for the whole section 1, but I wasn't able to suggest this, since github doesn't allow this.

Can you therefore please remove everything after

[nRF52840]: https://www.nordicsemi.com/Products/Low-power-short-range-wireless/nRF52840

until the beginning of section 2?

@Urhengulas
Copy link
Member

Okay, I was able to do it myself. Looks good now.

@Urhengulas
Copy link
Member

bors r+

@huntc
Copy link
Contributor Author

huntc commented Jun 23, 2021

Great. Thanks.

bors bot added a commit that referenced this pull request Jun 23, 2021
233: Some clarifications and corrections r=Urhengulas a=huntc

Some clarifications and corrections having used probe-run for the first time. Hope that they make sense.

Co-authored-by: Christopher Hunt <[email protected]>
Co-authored-by: Johann Hemmann <[email protected]>
@Urhengulas
Copy link
Member

bors cancel

@bors
Copy link
Contributor

bors bot commented Jun 23, 2021

Canceled.

@Urhengulas
Copy link
Member

bors r+

@bors
Copy link
Contributor

bors bot commented Jun 23, 2021

Build succeeded:

@bors bors bot merged commit e49af30 into knurling-rs:main Jun 23, 2021
@huntc huntc deleted the patch-1 branch June 23, 2021 10:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants