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);