diff --git a/src/netmd/base.rs b/src/netmd/base.rs index b1200f8..860ef90 100644 --- a/src/netmd/base.rs +++ b/src/netmd/base.rs @@ -135,17 +135,17 @@ impl NetMD { } /// Gets the device name, this is limited to the devices in the list - pub async fn device_name(&self) -> &Option { + pub fn device_name(&self) -> &Option { &self.model.name } /// Gets the vendor id - pub async fn vendor_id(&self) -> &u16 { + pub fn vendor_id(&self) -> &u16 { &self.model.vendor_id } /// Gets the product id - pub async fn product_id(&self) -> &u16 { + pub fn product_id(&self) -> &u16 { &self.model.product_id } diff --git a/src/netmd/interface.rs b/src/netmd/interface.rs index c423a4c..89ef4d5 100644 --- a/src/netmd/interface.rs +++ b/src/netmd/interface.rs @@ -1033,7 +1033,7 @@ impl NetMDInterface { let new_len = new_title.len(); - if self.net_md_device.vendor_id().await == &0x04dd { + if self.net_md_device.vendor_id() == &0x04dd { self.change_descriptor_state(&Descriptor::AudioUTOC1TD, &DescriptorAction::OpenWrite) .await } else { @@ -1055,7 +1055,7 @@ impl NetMDInterface { let _ = self.send_query(&mut query, false, false).await; - if self.net_md_device.vendor_id().await == &0x04dd { + if self.net_md_device.vendor_id() == &0x04dd { self.change_descriptor_state(&Descriptor::AudioUTOC1TD, &DescriptorAction::Close) .await } else {