CFDP initial packet support #14

Merged
muellerr merged 49 commits from cfdp_first_support into main 2023-07-02 17:31:17 +02:00
Showing only changes of commit ae8fb8ee14 - Show all commits

View File

@ -100,7 +100,7 @@ impl<'data> Lv<'data> {
/// known to contain a [str], for example being a file name. /// known to contain a [str], for example being a file name.
pub fn value_as_str(&self) -> Option<Result<&'data str, Utf8Error>> { pub fn value_as_str(&self) -> Option<Result<&'data str, Utf8Error>> {
self.data?; self.data?;
Some(std::str::from_utf8(self.data.unwrap())) Some(core::str::from_utf8(self.data.unwrap()))
} }
/// Writes the LV to a raw buffer. Please note that the first byte will contain the length /// Writes the LV to a raw buffer. Please note that the first byte will contain the length