Skip to content

Commit

Permalink
fixed some problems in case polling gets disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielAW committed Jan 31, 2017
1 parent 6a3b0ae commit 09d6b98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Expand Up @@ -186,6 +186,7 @@ public void onClick(View v) {
mNfcManager.shutdown();
mCloneModeEnabled = false;

DaemonConfiguration.getInstance().enablePolling();
mPinUID.setChecked(false);
mPinUID.setClickable(false);
}
Expand Down
1 change: 1 addition & 0 deletions nfcd/src/main/jni/chip.cpp
Expand Up @@ -216,6 +216,7 @@ static void uploadConfig(const struct s_chip_config config) {
void disablePolling() {
log("HOOKNFC disable polling");
hook_NfaDisablePolling();
hook_NfcDeactivate(0);
}

void enablePolling() {
Expand Down

0 comments on commit 09d6b98

Please sign in to comment.