reduce nfc detect period to 10ms

This commit is contained in:
Conor Patrick 2019-03-02 20:08:28 -05:00
parent 4b82e80d7a
commit a40dcf3f17

View File

@ -62,9 +62,9 @@ bool nfc_init()
ams_init(); ams_init();
// Detect if we are powered by NFC field by listening for a message for // Detect if we are powered by NFC field by listening for a message for
// first 25 ms. // first 10 ms.
t1 = millis(); t1 = millis();
while ((millis() - t1) < 25) while ((millis() - t1) < 10)
{ {
if (nfc_loop() > 0) if (nfc_loop() > 0)
return 1; return 1;