|
|
@ -343,7 +343,7 @@ impl Uds { |
|
|
|
|
|
|
|
|
|
|
|
ResultCode(unsafe { |
|
|
|
ResultCode(unsafe { |
|
|
|
ctru_sys::udsScanBeacons( |
|
|
|
ctru_sys::udsScanBeacons( |
|
|
|
scan_buf.as_mut_ptr().cast(), |
|
|
|
self.scan_buf.as_mut_ptr().cast(), |
|
|
|
Self::SCAN_BUF_SIZE, |
|
|
|
Self::SCAN_BUF_SIZE, |
|
|
|
networks.as_mut_ptr(), |
|
|
|
networks.as_mut_ptr(), |
|
|
|
total_networks.as_mut_ptr(), |
|
|
|
total_networks.as_mut_ptr(), |
|
|
@ -356,10 +356,6 @@ impl Uds { |
|
|
|
) |
|
|
|
) |
|
|
|
})?; |
|
|
|
})?; |
|
|
|
|
|
|
|
|
|
|
|
unsafe { |
|
|
|
|
|
|
|
scan_buf.assume_init_drop(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let networks = unsafe { networks.assume_init() }; |
|
|
|
let networks = unsafe { networks.assume_init() }; |
|
|
|
let total_networks = unsafe { total_networks.assume_init() }; |
|
|
|
let total_networks = unsafe { total_networks.assume_init() }; |
|
|
|
|
|
|
|
|
|
|
|