mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 13:00:42 -07:00
clean up
This commit is contained in:
parent
7d25c72e40
commit
40ccdb0e73
1 changed files with 5 additions and 8 deletions
|
@ -1227,16 +1227,13 @@ void ReaderHitag(hitag_function htf, hitag_data *htd) {
|
||||||
bool bStop = false;
|
bool bStop = false;
|
||||||
bool bQuitTraceFull = false;
|
bool bQuitTraceFull = false;
|
||||||
|
|
||||||
FpgaDownloadAndGo(FPGA_BITSTREAM_LF);
|
|
||||||
// Reset the return status
|
|
||||||
bSuccessful = false;
|
bSuccessful = false;
|
||||||
|
|
||||||
// Clean up trace and prepare it for storing frames
|
FpgaDownloadAndGo(FPGA_BITSTREAM_LF);
|
||||||
|
|
||||||
clear_trace();
|
clear_trace();
|
||||||
set_tracing(true);
|
set_tracing(true);
|
||||||
|
|
||||||
//DbpString("Starting Hitag reader family");
|
|
||||||
|
|
||||||
// Check configuration
|
// Check configuration
|
||||||
switch (htf) {
|
switch (htf) {
|
||||||
case RHT2F_PASSWORD: {
|
case RHT2F_PASSWORD: {
|
||||||
|
@ -1360,8 +1357,9 @@ void ReaderHitag(hitag_function htf, hitag_data *htd) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
uint8_t attempt_count = 0;
|
uint8_t attempt_count = 0;
|
||||||
while (!bStop && !BUTTON_PRESS()) {
|
|
||||||
// Watchdog hit
|
while (!bStop && !BUTTON_PRESS() && !usb_poll_validate_length() ) {
|
||||||
|
|
||||||
WDT_HIT();
|
WDT_HIT();
|
||||||
|
|
||||||
// Check if frame was captured and store it
|
// Check if frame was captured and store it
|
||||||
|
@ -1499,7 +1497,6 @@ void ReaderHitag(hitag_function htf, hitag_data *htd) {
|
||||||
rxlen++;
|
rxlen++;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
//Dbprintf("DEBUG: Wierd2");
|
|
||||||
errorCount++;
|
errorCount++;
|
||||||
// Ignore wierd value, is to small to mean anything
|
// Ignore wierd value, is to small to mean anything
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue