mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-08-02 22:29:01 +00:00
fix: remove wivrn pairing mode timer
This commit is contained in:
parent
356b42b056
commit
d8ca8cf961
1 changed files with 1 additions and 4 deletions
|
@ -11,9 +11,6 @@
|
||||||
#[allow(non_snake_case)]
|
#[allow(non_snake_case)]
|
||||||
mod internal;
|
mod internal;
|
||||||
|
|
||||||
/// timeout for dbus methods in seconds
|
|
||||||
const TIMEOUT: i32 = 10;
|
|
||||||
|
|
||||||
async fn proxy<'a>() -> zbus::Result<internal::ServerProxy<'a>> {
|
async fn proxy<'a>() -> zbus::Result<internal::ServerProxy<'a>> {
|
||||||
let connection = zbus::Connection::session().await?;
|
let connection = zbus::Connection::session().await?;
|
||||||
let proxy = internal::ServerProxy::new(&connection).await?;
|
let proxy = internal::ServerProxy::new(&connection).await?;
|
||||||
|
@ -25,7 +22,7 @@ pub async fn is_pairing_mode() -> zbus::Result<bool> {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn enable_pairing() -> zbus::Result<String> {
|
pub async fn enable_pairing() -> zbus::Result<String> {
|
||||||
proxy().await?.enable_pairing(TIMEOUT).await
|
proxy().await?.enable_pairing(0).await
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn disable_pairing() -> zbus::Result<()> {
|
pub async fn disable_pairing() -> zbus::Result<()> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue