Few fixups for nfc

This commit is contained in:
David Marcec
2018-09-23 21:29:58 +10:00
parent fdea1c5796
commit f2dd80f0b3
3 changed files with 6 additions and 5 deletions

View File

@@ -476,11 +476,11 @@ void System::LoadAmiibo(const std::string& filename) {
impl->nfc_activate->Signal();
}
Kernel::SharedPtr<Kernel::Event>& System::GetNFCEvent() const {
const Kernel::SharedPtr<Kernel::Event>& System::GetNFCEvent() const {
return impl->nfc_activate;
}
std::string& System::GetNFCFilename() const {
const std::string& System::GetNFCFilename() const {
return impl->nfc_filename;
}

View File

@@ -225,11 +225,11 @@ public:
std::shared_ptr<FileSys::VfsFilesystem> GetFilesystem() const;
std::string& GetNFCFilename() const;
const std::string& GetNFCFilename() const;
void LoadAmiibo(const std::string& path);
Kernel::SharedPtr<Kernel::Event>& GetNFCEvent() const;
const Kernel::SharedPtr<Kernel::Event>& GetNFCEvent() const;
private:
System();

View File

@@ -157,7 +157,8 @@ private:
case DeviceState::TagFound:
case DeviceState::TagNearby:
deactivate_event->Signal();
[[fallthrough]];
device_state = DeviceState::Initialized;
break;
case DeviceState::SearchingForTag:
case DeviceState::TagRemoved:
device_state = DeviceState::Initialized;