projects
/
proxmark3-svn
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b902aa
)
Allow clean Legic simulation exit without button press (#668)
author
wllm-rbnt
<william.robinet@conostix.com>
Mon, 10 Sep 2018 16:19:31 +0000
(18:19 +0200)
committer
pwpiwi
<pwpiwi@users.noreply.github.com>
Mon, 10 Sep 2018 16:19:31 +0000
(18:19 +0200)
armsrc/legicrfsim.c
patch
|
blob
|
blame
|
history
diff --git
a/armsrc/legicrfsim.c
b/armsrc/legicrfsim.c
index 07a0a62db2b5ab905ca19f2d1dac85a9f0012f17..34633f367cf7b939c7f3007ba536c8bbbc05ce87 100644
(file)
--- a/
armsrc/legicrfsim.c
+++ b/
armsrc/legicrfsim.c
@@
-19,6
+19,7
@@
#include "legic_prng.h"
#include "legic.h"
#include "crc.h"
+#include "usb_cdc.h" // for usb_poll_validate_length
static uint8_t* legic_mem; /* card memory, used for sim */
static legic_card_select_t card;/* metadata of currently selected card */
@@
-439,7
+440,7
@@
void LegicRfSimulate(uint8_t cardtype) {
LED_A_ON();
DbpString("Starting Legic emulator, press button to end");
- while(!BUTTON_PRESS()) {
+ while(!BUTTON_PRESS()
&& !usb_poll_validate_length()
) {
WDT_HIT();
// wait for carrier, restart after timeout
Impressum
,
Datenschutz