fix(bluetooth): reversed min/max condition on retry timer

This commit is contained in:
Ashley Wulber 2025-07-18 14:06:19 -04:00 committed by GitHub
parent c171f048a6
commit c539b0628b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -91,7 +91,7 @@ pub fn bluetooth_subscription<I: 'static + Hash + Copy + Send + Sync + Debug>(
retry_count = retry_count.saturating_add(1);
_ = tokio::time::sleep(Duration::from_millis(
2_u64.saturating_pow(retry_count).max(68719476734),
2_u64.saturating_pow(retry_count).min(68719476734),
))
.await;
};