Skip to content

Commit

Permalink
nrf52840: ieee802154: clarify buf len comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bradjc committed May 23, 2024
1 parent 958a6a1 commit 9479df2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chips/nrf52840/src/ieee802154_radio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1348,7 +1348,7 @@ impl<'a> kernel::hil::radio::RadioData<'a> for Radio<'a> {
} else if self.busy() {
return Err((ErrorCode::BUSY, buf));
} else if buf.len() < radio::PSDU_OFFSET + frame_len + radio::MFR_SIZE {
// Not enough room for CRC
// Not enough room for CRC or PHR or reserved byte
return Err((ErrorCode::SIZE, buf));
}

Expand Down

0 comments on commit 9479df2

Please sign in to comment.