aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/nfc/nfc_user.cpp
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2022-11-10 13:52:48 -0600
committerNarr the Reg <juangerman-13@hotmail.com>2022-12-01 20:43:59 -0600
commita4725bcb73c5038853f460e15c4bfa9f679e7f4b (patch)
treeee0ab201ee43638ba274c7fdced6d97c490e4cfb /src/core/hle/service/nfc/nfc_user.cpp
parent4e89979c87dfa77f0c55b03a5aaf00706276c2f0 (diff)
service: nfc: Implement mifare service
Diffstat (limited to 'src/core/hle/service/nfc/nfc_user.cpp')
-rw-r--r--src/core/hle/service/nfc/nfc_user.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/nfc/nfc_user.cpp b/src/core/hle/service/nfc/nfc_user.cpp
index ced2d560b..4615697e2 100644
--- a/src/core/hle/service/nfc/nfc_user.cpp
+++ b/src/core/hle/service/nfc/nfc_user.cpp
@@ -201,7 +201,7 @@ void IUser::AttachAvailabilityChangeEvent(Kernel::HLERequestContext& ctx) {
void IUser::StartDetection(Kernel::HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto device_handle{rp.Pop<u64>()};
- const auto nfp_protocol{rp.Pop<s32>()};
+ const auto nfp_protocol{rp.PopEnum<NFP::TagProtocol>()};
LOG_INFO(Service_NFC, "called, device_handle={}, nfp_protocol={}", device_handle, nfp_protocol);
if (state == State::NonInitialized) {
@@ -267,7 +267,7 @@ void IUser::GetTagInfo(Kernel::HLERequestContext& ctx) {
}
NFP::TagInfo tag_info{};
- const auto result = device.value()->GetTagInfo(tag_info);
+ const auto result = device.value()->GetTagInfo(tag_info, false);
ctx.WriteBuffer(tag_info);
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(result);