aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/nfc/nfc_user.cpp
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2022-12-05 22:17:32 -0500
committerGitHub <noreply@github.com>2022-12-05 22:17:32 -0500
commit04779b3d2a5e25a3808d754d1ea1767f0b8c0328 (patch)
treefd003772877453e89a19d6509bc675fff3a35f54 /src/core/hle/service/nfc/nfc_user.cpp
parent90145c424d3844aae71f41dae168c09f7abb7a6e (diff)
parent752236caad5d1d3ed097c22929081919f27b190e (diff)
Merge pull request #9369 from german77/mifare
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);