maybe this fixes the issue?
This commit is contained in:
parent
a4b14250c2
commit
2a0db6b21c
@ -190,7 +190,7 @@ impl TryFrom<u8> for SequenceFlags {
|
|||||||
|
|
||||||
/// Abstraction for the CCSDS Packet ID, which forms the last thirteen bits
|
/// Abstraction for the CCSDS Packet ID, which forms the last thirteen bits
|
||||||
/// of the first two bytes in the CCSDS primary header.
|
/// of the first two bytes in the CCSDS primary header.
|
||||||
#[derive(Debug, PartialEq, Eq, Copy, Clone)]
|
#[derive(Debug, Eq, Copy, Clone)]
|
||||||
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
||||||
pub struct PacketId {
|
pub struct PacketId {
|
||||||
pub ptype: PacketType,
|
pub ptype: PacketType,
|
||||||
@ -198,6 +198,12 @@ pub struct PacketId {
|
|||||||
apid: u16,
|
apid: u16,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl PartialEq for PacketId {
|
||||||
|
fn eq(&self, other: &Self) -> bool {
|
||||||
|
self.raw().eq(&other.raw())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl PartialOrd for PacketId {
|
impl PartialOrd for PacketId {
|
||||||
fn partial_cmp(&self, other: &Self) -> Option<core::cmp::Ordering> {
|
fn partial_cmp(&self, other: &Self) -> Option<core::cmp::Ordering> {
|
||||||
self.raw().partial_cmp(&other.raw())
|
self.raw().partial_cmp(&other.raw())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user