From db9b744825bbdb2e7528bb80b0a1b0f43f6207d6 Mon Sep 17 00:00:00 2001 From: mwojcik Date: Mon, 30 Aug 2021 15:06:46 +0200 Subject: [PATCH] satman: fixed timeout millisecond/u64 mismatch --- src/satman/repeater.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/satman/repeater.rs b/src/satman/repeater.rs index 6411d478..13917164 100644 --- a/src/satman/repeater.rs +++ b/src/satman/repeater.rs @@ -20,7 +20,7 @@ fn rep_link_rx_up(repno: u8) -> bool { enum RepeaterState { Down, SendPing { ping_count: u16 }, - WaitPingReply { ping_count: u16, timeout: u64 }, + WaitPingReply { ping_count: u16, timeout: Milliseconds }, Up, Failed } @@ -169,7 +169,7 @@ impl Repeater { } fn recv_aux_timeout(&self, timeout: u32, timer: GlobalTimer) -> Result { - let max_time = timer.get_time() + Milliseconds(timeout); + let max_time = timer.get_time() + Milliseconds(timeout.into()); loop { if !rep_link_rx_up(self.repno) { return Err(drtioaux::Error::LinkDown);