make style
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user