mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 05:13:46 -07:00
make style
This commit is contained in:
parent
0d9223a547
commit
0373696662
483 changed files with 56514 additions and 52451 deletions
|
@ -13,34 +13,34 @@
|
|||
#include "cmdmain.h"
|
||||
|
||||
#define HANDLE_ERROR if (error_occured) { \
|
||||
error_occured = 0;\
|
||||
break;\
|
||||
}
|
||||
error_occured = 0;\
|
||||
break;\
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
usb_init();
|
||||
SetLogFilename("snooper.log");
|
||||
usb_init();
|
||||
SetLogFilename("snooper.log");
|
||||
|
||||
return_on_error = 1;
|
||||
return_on_error = 1;
|
||||
|
||||
while(1) {
|
||||
while (!OpenProxmark()) { sleep(1); }
|
||||
while (1) {
|
||||
UsbCommand cmdbuf;
|
||||
CommandReceived("hf 14a snoop");
|
||||
HANDLE_ERROR;
|
||||
ReceiveCommand(&cmdbuf);
|
||||
HANDLE_ERROR;
|
||||
for (int i = 0; i < 5; ++i) {
|
||||
ReceiveCommandPoll(&cmdbuf);
|
||||
}
|
||||
HANDLE_ERROR;
|
||||
CommandReceived("hf list 14a");
|
||||
HANDLE_ERROR;
|
||||
while (!OpenProxmark()) { sleep(1); }
|
||||
while (1) {
|
||||
UsbCommand cmdbuf;
|
||||
CommandReceived("hf 14a snoop");
|
||||
HANDLE_ERROR;
|
||||
ReceiveCommand(&cmdbuf);
|
||||
HANDLE_ERROR;
|
||||
for (int i = 0; i < 5; ++i) {
|
||||
ReceiveCommandPoll(&cmdbuf);
|
||||
}
|
||||
HANDLE_ERROR;
|
||||
CommandReceived("hf list 14a");
|
||||
HANDLE_ERROR;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
CloseProxmark();
|
||||
return 0;
|
||||
CloseProxmark();
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue