fix user presence skipping for nfc

This commit is contained in:
Conor Patrick
2019-05-09 17:26:28 -04:00
parent 54792b345c
commit e402d36bf1
3 changed files with 8 additions and 8 deletions

View File

@@ -19,6 +19,7 @@
#include "crypto.h"
#include "util.h"
#include "log.h"
#include "nfc.h"
#include "device.h"
#include APP_CONFIG
#include "wallet.h"
@@ -1759,7 +1760,7 @@ void ctap_init()
exit(1);
}
if (! device_is_nfc())
if (device_is_nfc() != NFC_IS_ACTIVE)
{
ctap_reset_key_agreement();
}