From 26e3f96983332fdf023fb73de2d9d04d00052d8e Mon Sep 17 00:00:00 2001 From: Narr the Reg Date: Fri, 7 Jul 2023 20:02:39 -0600 Subject: [PATCH] service: nfc: Start adapter communication on scan (#6671) --- src/core/hle/service/nfc/nfc_device.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/hle/service/nfc/nfc_device.cpp b/src/core/hle/service/nfc/nfc_device.cpp index e9ef3cb77..58fd6fc8e 100644 --- a/src/core/hle/service/nfc/nfc_device.cpp +++ b/src/core/hle/service/nfc/nfc_device.cpp @@ -218,7 +218,10 @@ ResultCode NfcDevice::StartDetection(TagProtocol allowed_protocol) { return ResultInvalidOperation; } - // TODO: Set console in search mode here + // Ensure external device is active + if (communication_state == CommunicationState::Idle) { + StartCommunication(); + } device_state = DeviceState::SearchingForTag; allowed_protocols = allowed_protocol;