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