mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
added possibility for manual interruption of 4x50_watch
This commit is contained in:
parent
836ca5da40
commit
f2dad2f566
1 changed files with 20 additions and 10 deletions
|
@ -210,6 +210,10 @@ static uint32_t get_pulse_length(void) {
|
|||
|
||||
volatile uint8_t sample = (uint8_t)AT91C_BASE_SSC->SSC_RHR;
|
||||
|
||||
// for manual interruption
|
||||
if (BUTTON_PRESS())
|
||||
return 0;
|
||||
|
||||
while (sample > gLow && (timeout--))
|
||||
sample = (uint8_t)AT91C_BASE_SSC->SSC_RHR;
|
||||
|
||||
|
@ -1264,9 +1268,14 @@ void em4x50_watch() {
|
|||
memset(words, 0, sizeof(words));
|
||||
now = 0;
|
||||
|
||||
if (get_signalproperties() && find_em4x50_tag()) {
|
||||
//if (get_signalproperties()) && find_em4x50_tag()) {
|
||||
if (get_signalproperties()) {
|
||||
Dbprintf("ghet 1");
|
||||
if (find_em4x50_tag()) {
|
||||
Dbprintf("ghet 2");
|
||||
|
||||
standard_read(&now, words);
|
||||
Dbprintf("ghet 3");
|
||||
|
||||
if (now > 0) {
|
||||
|
||||
|
@ -1280,6 +1289,7 @@ void em4x50_watch() {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
LOW(GPIO_SSC_DOUT);
|
||||
lf_finalize();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue