From b01b89ff0a38a1de6ce4732500569257fd351594 Mon Sep 17 00:00:00 2001 From: SamClercky Date: Sun, 5 May 2024 15:22:54 +0200 Subject: [PATCH] fix math --- dot15d4/src/csma/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dot15d4/src/csma/mod.rs b/dot15d4/src/csma/mod.rs index 91cacd0..f23647c 100644 --- a/dot15d4/src/csma/mod.rs +++ b/dot15d4/src/csma/mod.rs @@ -413,10 +413,10 @@ where .await; // We expect an ACK to come back AIFS + time for an ACK to travel + SIFS (guard) - // An ACK is 3 bytes long and should take around 24 us at 250kbps to get back + // An ACK is 3 bytes + 6 bytes (PHY header) long and should take around 288us at 250kbps to get back let delay = ACKNOWLEDGEMENT_INTERFRAME_SPACING + MAC_SIFT_PERIOD - + Duration::from_us(24); + + Duration::from_us(288); match select::select( Self::wait_for_valid_ack( &mut *radio_guard.unwrap(),