We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47fc19d commit 3ea430fCopy full SHA for 3ea430f
nrf52840-hal/src/ieee802154.rs
@@ -590,7 +590,7 @@ impl Packet {
590
/// Maximum amount of usable payload (CRC excluded) a single packet can contain, in bytes
591
pub const CAPACITY: u8 = 125;
592
const CRC: u8 = 2; // size of the CRC, which is *never* copied to / from RAM
593
- const MAX_PSDU_LEN: u8 = Self::CAPACITY + 2 /* Self::CRC */;
+ const MAX_PSDU_LEN: u8 = Self::CAPACITY + Self::CRC;
594
const SIZE: usize = 1 /* PHR */ + Self::MAX_PSDU_LEN as usize;
595
596
/// Returns an empty packet (length = 0)
0 commit comments