mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-23 07:37:23 +08:00
Remove unused comments.
Change boolean for src.
This commit is contained in:
parent
42fd13985f
commit
b4c1333ac3
1 changed files with 7 additions and 8 deletions
|
@ -580,7 +580,7 @@ void felica_sniff(uint32_t samplesToSkip, uint32_t triggersToSkip) {
|
|||
uint16_t numbts = 0;
|
||||
int trigger_cnt = 0;
|
||||
uint32_t timeout = iso18092_get_timeout();
|
||||
bool isTagFrame = true;
|
||||
bool isReaderFrame = true;
|
||||
while (!BUTTON_PRESS()) {
|
||||
WDT_HIT();
|
||||
if (AT91C_BASE_SSC->SSC_SR & AT91C_SSC_RXRDY) {
|
||||
|
@ -591,23 +591,22 @@ void felica_sniff(uint32_t samplesToSkip, uint32_t triggersToSkip) {
|
|||
break;
|
||||
}
|
||||
if (FelicaFrame.state == STATE_FULL) {
|
||||
//Dbprintf("Sniffing - Got Felica Frame! Sample remaining %i", remFrames);
|
||||
if ((FelicaFrame.framebytes[3] % 2) == 0) {
|
||||
isReaderFrame = true; // All Reader Frames are even and all Tag frames are odd
|
||||
} else {
|
||||
isReaderFrame = false;
|
||||
}
|
||||
remFrames--;
|
||||
if (remFrames <= 0) {
|
||||
Dbprintf("Stop Sniffing - samplesToSkip reached!");
|
||||
break;
|
||||
}
|
||||
if ((FelicaFrame.framebytes[3] % 2) == 0) {
|
||||
isTagFrame = false; // All Reader Frames are even and all Tag frames are odd
|
||||
} else {
|
||||
isTagFrame = true;
|
||||
}
|
||||
LogTrace(FelicaFrame.framebytes,
|
||||
FelicaFrame.len,
|
||||
((GetCountSspClk() & 0xfffffff8) << 4) - DELAY_AIR2ARM_AS_READER - timeout,
|
||||
((GetCountSspClk() & 0xfffffff8) << 4) - DELAY_AIR2ARM_AS_READER,
|
||||
NULL,
|
||||
isTagFrame
|
||||
isReaderFrame
|
||||
);
|
||||
numbts += FelicaFrame.len;
|
||||
FelicaFrameReset();
|
||||
|
|
Loading…
Reference in a new issue