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

Improve hex encode/decoder #9

Closed
MathiasKoch opened this issue Apr 1, 2020 · 1 comment · Fixed by #16
Closed

Improve hex encode/decoder #9

MathiasKoch opened this issue Apr 1, 2020 · 1 comment · Fixed by #16
Assignees
Labels
bug 🐛 Something isn't working enhancement 👍 New feature or request

Comments

@MathiasKoch
Copy link
Member

MathiasKoch commented Apr 1, 2020

The current hex encoder & decoder is a quickfix, that should probably be replaced with rust-hex once KokaKiwi/rust-hex#42 is merged.

// TODO: Handle this decoding in-place?
let data: heapless::Vec<_, consts::U200> =
hex::decode_hex(&socket_data.data).map_err(|_| Error::BadLength)?;
Ok(tcp.rx_enqueue_slice(&data))

@MathiasKoch MathiasKoch added bug 🐛 Something isn't working enhancement 👍 New feature or request labels Apr 1, 2020
@MathiasKoch MathiasKoch self-assigned this May 4, 2020
@MathiasKoch
Copy link
Member Author

This is currently being addressed in https://github.com/BlackbirdHQ/ublox-cellular-rs/tree/refactor/new-atat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working enhancement 👍 New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant