mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 13:23:51 -07:00
make style
This commit is contained in:
parent
842e321cdb
commit
346af6e3d1
5 changed files with 29 additions and 32 deletions
|
@ -1342,7 +1342,7 @@ void ReaderHitag(hitag_function htf, hitag_data *htd) {
|
||||||
}
|
}
|
||||||
uint8_t attempt_count = 0;
|
uint8_t attempt_count = 0;
|
||||||
|
|
||||||
while (!bStop && !BUTTON_PRESS() && !usb_poll_validate_length() ) {
|
while (!bStop && !BUTTON_PRESS() && !usb_poll_validate_length()) {
|
||||||
|
|
||||||
WDT_HIT();
|
WDT_HIT();
|
||||||
|
|
||||||
|
|
|
@ -427,12 +427,10 @@ uint32_t doCotagAcquisitionManchester() {
|
||||||
if (sample > COTAG_ONE_THRESHOLD) {
|
if (sample > COTAG_ONE_THRESHOLD) {
|
||||||
prev = curr;
|
prev = curr;
|
||||||
curr = 1;
|
curr = 1;
|
||||||
}
|
} else if (sample < COTAG_ZERO_THRESHOLD) {
|
||||||
else if ( sample < COTAG_ZERO_THRESHOLD) {
|
|
||||||
prev = curr;
|
prev = curr;
|
||||||
curr = 0;
|
curr = 0;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
curr = prev;
|
curr = prev;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -945,19 +945,19 @@ int CmdLFfind(const char *Cmd) {
|
||||||
bool st = true;
|
bool st = true;
|
||||||
if (ASKDemod_ext("0 0 0", true, false, 1, &st)) {
|
if (ASKDemod_ext("0 0 0", true, false, 1, &st)) {
|
||||||
PrintAndLogEx(NORMAL, "\nUnknown ASK Modulated and Manchester encoded Tag found!");
|
PrintAndLogEx(NORMAL, "\nUnknown ASK Modulated and Manchester encoded Tag found!");
|
||||||
PrintAndLogEx(NORMAL, "if it does not look right it could instead be ASK/Biphase - try " _YELLOW_("'data rawdemod ab'") );
|
PrintAndLogEx(NORMAL, "if it does not look right it could instead be ASK/Biphase - try " _YELLOW_("'data rawdemod ab'"));
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (CmdPSK1rawDemod("")) {
|
if (CmdPSK1rawDemod("")) {
|
||||||
PrintAndLogEx(NORMAL, "Possible unknown PSK1 Modulated Tag found above!");
|
PrintAndLogEx(NORMAL, "Possible unknown PSK1 Modulated Tag found above!");
|
||||||
PrintAndLogEx(NORMAL, " Could also be PSK2 - try " _YELLOW_("'data rawdemod p2'") );
|
PrintAndLogEx(NORMAL, " Could also be PSK2 - try " _YELLOW_("'data rawdemod p2'"));
|
||||||
PrintAndLogEx(NORMAL, " Could also be PSK3 - [currently not supported]");
|
PrintAndLogEx(NORMAL, " Could also be PSK3 - [currently not supported]");
|
||||||
PrintAndLogEx(NORMAL, " Could also be NRZ - try " _YELLOW_("'data rawdemod nr") );
|
PrintAndLogEx(NORMAL, " Could also be NRZ - try " _YELLOW_("'data rawdemod nr"));
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
PrintAndLogEx(FAILED, _RED_("\nNo data found!") );
|
PrintAndLogEx(FAILED, _RED_("\nNo data found!"));
|
||||||
}
|
}
|
||||||
out:
|
out:
|
||||||
// identify chipset
|
// identify chipset
|
||||||
|
|
|
@ -29,8 +29,7 @@ size_t nbytes(size_t nbits) {
|
||||||
return (nbits / 8) + ((nbits % 8) > 0);
|
return (nbits / 8) + ((nbits % 8) > 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
int usage_hitag_reader(void)
|
int usage_hitag_reader(void) {
|
||||||
{
|
|
||||||
PrintAndLogEx(NORMAL, "Usage: lf hitag reader [h] <reader function #>");
|
PrintAndLogEx(NORMAL, "Usage: lf hitag reader [h] <reader function #>");
|
||||||
PrintAndLogEx(NORMAL, "Options:");
|
PrintAndLogEx(NORMAL, "Options:");
|
||||||
PrintAndLogEx(NORMAL, " h This help");
|
PrintAndLogEx(NORMAL, " h This help");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue