mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-11-10 17:49:32 +08:00
fixed indentation to get rid of warnings
warnings are treated as errors, so a warning due to misleading indentation is kinda annoying
This commit is contained in:
parent
111c6934d4
commit
78f59945a7
3 changed files with 13 additions and 11 deletions
|
@ -1639,11 +1639,11 @@ void RAMFUNC SnoopIso14443b(void) {
|
||||||
if (triggered)
|
if (triggered)
|
||||||
LogTrace(Uart.output, Uart.byteCnt, time_start, time_stop, NULL, TRUE);
|
LogTrace(Uart.output, Uart.byteCnt, time_start, time_stop, NULL, TRUE);
|
||||||
|
|
||||||
/* And ready to receive another command. */
|
/* And ready to receive another command. */
|
||||||
UartReset();
|
UartReset();
|
||||||
/* And also reset the demod code, which might have been */
|
/* And also reset the demod code, which might have been */
|
||||||
/* false-triggered by the commands from the reader. */
|
/* false-triggered by the commands from the reader. */
|
||||||
DemodReset();
|
DemodReset();
|
||||||
} else {
|
} else {
|
||||||
time_start = GetCountSspClk() - time_0;
|
time_start = GetCountSspClk() - time_0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -141,10 +141,10 @@ void UsbPacketReceived(uint8_t *packet, int len) {
|
||||||
// Wait until flashing of page finishes
|
// Wait until flashing of page finishes
|
||||||
uint32_t sr;
|
uint32_t sr;
|
||||||
while(!((sr = AT91C_BASE_EFC0->EFC_FSR) & AT91C_MC_FRDY));
|
while(!((sr = AT91C_BASE_EFC0->EFC_FSR) & AT91C_MC_FRDY));
|
||||||
if(sr & (AT91C_MC_LOCKE | AT91C_MC_PROGE)) {
|
if(sr & (AT91C_MC_LOCKE | AT91C_MC_PROGE)) {
|
||||||
dont_ack = 1;
|
dont_ack = 1;
|
||||||
cmd_send(CMD_NACK,sr,0,0,0,0);
|
cmd_send(CMD_NACK,sr,0,0,0,0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
|
|
|
@ -84,7 +84,9 @@ size_t removeParity(uint8_t *BitStream, size_t startIdx, uint8_t pLen, uint8_t p
|
||||||
case 3: if (BitStream[j]==1) return 0; break; //should be 0 spacer bit
|
case 3: if (BitStream[j]==1) return 0; break; //should be 0 spacer bit
|
||||||
case 2: if (BitStream[j]==0) return 0; break; //should be 1 spacer bit
|
case 2: if (BitStream[j]==0) return 0; break; //should be 1 spacer bit
|
||||||
default: //test parity
|
default: //test parity
|
||||||
if (parityTest(parityWd, pLen, pType) == 0) return 0; break;
|
if (parityTest(parityWd, pLen, pType) == 0)
|
||||||
|
return 0;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
bitCnt+=(pLen-1);
|
bitCnt+=(pLen-1);
|
||||||
parityWd = 0;
|
parityWd = 0;
|
||||||
|
|
Loading…
Reference in a new issue