From 32cbbb1c196489110da37f75613bf6410f588d73 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Thu, 6 Jul 2023 01:24:40 +0200 Subject: [PATCH] some minor fixes and tweaks --- CHANGELOG.md | 3 ++- Cargo.toml | 2 +- src/tm.rs | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fe04300..593ef10 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - `GenericUnsignedByteField` and helper typedefs `UnsignedU8`, `UnsignedU16`, `UnsignedU32` and `UnsignedU64` as helper types implementing `UnsignedEnum` - `UnsignedByteField` as a type-erased helper. +- Initial CFDP support: Added PDU packet implementation. - Added `SerializablePusPacket` as a generic abstraction for PUS packets which are writable. - Added new `PusTmZeroCopyWriter` class which allows to set fields on a raw TM packet, @@ -26,7 +27,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## Changed - The `EcssEnumeration` now requires the `UnsignedEnum` trait and only adds the `pfc` method to it. -- Renamed `byte_width` usages to `len` (part of new `UnsignedEnum` trait) +- Renamed `byte_width` usages to `size` (part of new `UnsignedEnum` trait) - Moved `ecss::CRC_CCITT_FALSE` CRC constant to the root module. This CRC type is not just used by the PUS standard, but by the CCSDS Telecommand standard and the CFDP standard as well. diff --git a/Cargo.toml b/Cargo.toml index 264d412..214afe0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,7 +36,7 @@ version = "0.2" default-features = false [dev-dependencies.postcard] -version = "1.0" +version = "1" [features] default = ["std"] diff --git a/src/tm.rs b/src/tm.rs index eb9889e..5e1fc69 100644 --- a/src/tm.rs +++ b/src/tm.rs @@ -806,7 +806,7 @@ mod tests { .expect("Creating zero copy writer failed"); writer.set_destination_id(55); writer.set_msg_count(100); - writer.set_seq_count_in_place(MAX_SEQ_COUNT); + writer.set_seq_count(MAX_SEQ_COUNT); writer.set_apid(MAX_APID); writer.finish(); // This performs all necessary checks, including the CRC check.