|
|
|
@ -142,9 +142,13 @@ void NfcInterface::AttachAvailabilityChangeEvent(HLERequestContext& ctx) {
|
|
|
|
|
void NfcInterface::StartDetection(HLERequestContext& ctx) {
|
|
|
|
|
IPC::RequestParser rp{ctx};
|
|
|
|
|
const auto device_handle{rp.Pop<u64>()};
|
|
|
|
|
const auto tag_protocol{rp.PopEnum<NfcProtocol>()};
|
|
|
|
|
LOG_INFO(Service_NFC, "called, device_handle={}, nfp_protocol={}", device_handle, tag_protocol);
|
|
|
|
|
auto tag_protocol{NfcProtocol::All};
|
|
|
|
|
|
|
|
|
|
if (backend_type == BackendType::Nfc) {
|
|
|
|
|
tag_protocol = rp.PopEnum<NfcProtocol>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
LOG_INFO(Service_NFC, "called, device_handle={}, nfp_protocol={}", device_handle, tag_protocol);
|
|
|
|
|
auto result = GetManager()->StartDetection(device_handle, tag_protocol);
|
|
|
|
|
result = TranslateResultToServiceError(result);
|
|
|
|
|
|
|
|
|
|