Skip to content

Commit 3ea430f

Browse files
japarichubertmis
andauthored
Update nrf52840-hal/src/ieee802154.rs
Co-authored-by: Hubert Miś <[email protected]>
1 parent 47fc19d commit 3ea430f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nrf52840-hal/src/ieee802154.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ impl Packet {
590590
/// Maximum amount of usable payload (CRC excluded) a single packet can contain, in bytes
591591
pub const CAPACITY: u8 = 125;
592592
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 */;
593+
const MAX_PSDU_LEN: u8 = Self::CAPACITY + Self::CRC;
594594
const SIZE: usize = 1 /* PHR */ + Self::MAX_PSDU_LEN as usize;
595595

596596
/// Returns an empty packet (length = 0)

0 commit comments

Comments
 (0)