Skip to content

Conversation

@ejka-inapril
Copy link

removed std and alloc dependencies from ymodem

removed std and alloc dependencies from ymodem
@shymega
Copy link
Member

shymega commented Jun 6, 2024

Thank you, but there's too many changes in this PR unrelated to the PR title. Also, did you mean to close the PR?

@shymega
Copy link
Member

shymega commented Jun 6, 2024

I would rather have smaller, composable PRs addressing each change, with commits describing the change.

@shymega shymega reopened this Jun 6, 2024
Copy link
Member

@shymega shymega left a comment

Choose a reason for hiding this comment

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

Several changes needed, and if you can open other PRs to address this, that would be great, and we can close this one as the parent PR.

Cargo.toml Outdated
name = "txmodems"
readme = "README.md"
repository = "https://github.com/Cosmo-CoDiOS/txmodems"
repository = "https://github.com/inApril-AS/txmodems"
Copy link
Member

Choose a reason for hiding this comment

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

I would rather this wasn't changed. It looks like you want to rebrand my crate as your own, which isn't fair to my work, and the derived code from other crates.

Comment on lines 7 to 13
keywords = ["data-transfer", "MODEM", "file-transfer", "embedded"]
version = "0.1.3"
authors = ["Dom Rodriguez <shymega@shymega.org.uk>"]
keywords = ["serial", "xmodem", "ymodem", "data-transfer", "MODEM", "file-transfer", "embedded"]
version = "0.2.0"
authors = [
"Dom Rodriguez <shymega@shymega.org.uk>",
"Eliud de León <eliud.deleon.10@gmail.com>",
"Eskild Jonatan Krumsvik Aanensen <eskild.krumsvik.aanensen@inapril.com>",
]
Copy link
Member

Choose a reason for hiding this comment

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

Version bump is fine, and keywords are fine - but you should be asking before adding yourselves to the authors key. I was going to put 'The Cosmo-CoDiOS Developers' at some point, given this project is under that umbrella.

core2 = { version = "0.4.0", default-features = false }
crc16 = "0.4.0"
defmt = { version = "0.3", optional = true }
heapless = "0.8.0"
Copy link
Member

Choose a reason for hiding this comment

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

Why do we need this?

Comment on lines -152 to +190
file_name: String,
file_name: String<32>,
Copy link
Member

Choose a reason for hiding this comment

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

Typo?


extern crate alloc;

mod common;
pub mod common;
pub mod variants;
Copy link
Member

Choose a reason for hiding this comment

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

common should remain private!

Comment on lines 24 to 28
pub max_errors: u32,

/// The number of *initial errors* that can occur before the communication is
/// considered a failure. Errors include unexpected bytes and timeouts waiting for bytes.
pub max_initial_errors: u32,
Copy link
Member

Choose a reason for hiding this comment

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

Please refrain from unnecessary newlines.

Comment on lines 45 to 51
if self.errors >= self.max_errors {
#[cfg(defmt)]
error!("Exhausted max retries ({}) while sending start frame in YMODEM transfer", self.max_errors);
return Err(ModemError::ExhaustedRetries { errors: self.max_errors });
} else {
Ok(())
}
Copy link
Member

Choose a reason for hiding this comment

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

This branch can be simplified. Remove else and simply end function with Ok(()).

@shymega shymega self-assigned this Jun 6, 2024
@ejka-inapril
Copy link
Author

did you mean to close the PR?

Yes, I didn't mean to open it.

@inApril-AS inApril-AS closed this by deleting the head repository Nov 13, 2024
@shymega
Copy link
Member

shymega commented Nov 14, 2024 via email

@ejka-inapril
Copy link
Author

Hi,

The PR was automatically closed since I made the repository private.
I did this because I thought the changes strayed to far from the original crate, and I was unsure of my employers take on it being open source.
But since you are interested, and I got a yes from my employer I can reopen new issues on a new fork.

Eskild J. K. Aanensen

@shymega
Copy link
Member

shymega commented Nov 15, 2024 via email

@ejka-inapril
Copy link
Author

I have opened a new fork, and will do a PR soon. As I have gotten a prototype working receiving data.

I don't know if adding CI is worth it, I think that would be up to you.

Eskild J. K. Aanensen

@shymega
Copy link
Member

shymega commented Dec 7, 2024

Hi,

I've reviewed #2.

As for CI, I was not thinking necessarily of testing real-world data, but just mock tests of 'example' data. We could use the base Modem trait for that.

@shymega
Copy link
Member

shymega commented Dec 7, 2024

Feel free to open a PR adding YMODEM support, and your embedded-io-async support on InApril's fork.

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.

3 participants