used enum for Nfc GetStateOld

This commit is contained in:
David Marcec
2018-10-13 02:49:54 +11:00
parent 58005c75dd
commit 81bed53827
2 changed files with 4 additions and 3 deletions

View File

@@ -133,6 +133,9 @@ public:
}
private:
enum class NfcStates : u32 {
Finalized = 6,
};
void InitializeOld(Kernel::HLERequestContext& ctx) {
IPC::ResponseBuilder rb{ctx, 2, 0};
rb.Push(RESULT_SUCCESS);
@@ -154,7 +157,7 @@ private:
IPC::ResponseBuilder rb{ctx, 3};
rb.Push(RESULT_SUCCESS);
rb.PushRaw<u32>(6); // TODO(ogniK): Figure out if this matches nfp
rb.PushEnum(NfcStates::Finalized); // TODO(ogniK): Figure out if this matches nfp
}
void FinalizeOld(Kernel::HLERequestContext& ctx) {

View File

@@ -190,8 +190,6 @@ private:
void GetDeviceState(Kernel::HLERequestContext& ctx) {
LOG_DEBUG(Service_NFP, "called");
Core::System& system{Core::System::GetInstance()};
const auto event = nfp_interface.GetNFCEvent();
if (!event->ShouldWait(Kernel::GetCurrentThread()) && !has_attached_handle) {