mirror of
https://github.com/G2-Games/minidisc-cli.git
synced 2025-04-19 03:32:53 -05:00
Change vendor_id and product_id functions to return clones of u16
This commit is contained in:
parent
3fd6bb4c4b
commit
afd799d07d
2 changed files with 6 additions and 6 deletions
|
@ -140,13 +140,13 @@ impl NetMD {
|
|||
}
|
||||
|
||||
/// Gets the vendor id
|
||||
pub fn vendor_id(&self) -> &u16 {
|
||||
&self.model.vendor_id
|
||||
pub fn vendor_id(&self) -> u16 {
|
||||
self.model.vendor_id
|
||||
}
|
||||
|
||||
/// Gets the product id
|
||||
pub fn product_id(&self) -> &u16 {
|
||||
&self.model.product_id
|
||||
pub fn product_id(&self) -> u16 {
|
||||
self.model.product_id
|
||||
}
|
||||
|
||||
/// Poll the device to get either the result
|
||||
|
|
|
@ -1033,7 +1033,7 @@ impl NetMDInterface {
|
|||
|
||||
let new_len = new_title.len();
|
||||
|
||||
if self.net_md_device.vendor_id() == &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() == &0x04dd {
|
||||
if self.net_md_device.vendor_id() == 0x04dd {
|
||||
self.change_descriptor_state(&Descriptor::AudioUTOC1TD, &DescriptorAction::Close)
|
||||
.await
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue