-
-#ifdef WITH_LF_StandAlone
-#ifndef WITH_ISO14443a_StandAlone
- if (BUTTON_HELD(1000) > 0)
- SamyRun();
-#endif
-#endif
-#ifdef WITH_ISO14443a
-#ifdef WITH_ISO14443a_StandAlone
- if (BUTTON_HELD(1000) > 0)
- StandAloneMode14a();
+ if (cmd_receive(&rx)) {
+ UsbPacketReceived(&rx);
+ } else {
+#if defined(WITH_LF_StandAlone) && !defined(WITH_ISO14443a_StandAlone)
+ if (BUTTON_HELD(1000) > 0)
+ SamyRun();