mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-02 21:54:10 +08:00
CHG: syntax suger
This commit is contained in:
parent
e4a8d1e2ac
commit
1bf1db845f
1 changed files with 1 additions and 3 deletions
|
@ -115,7 +115,6 @@ static void *main_loop(void *targ) {
|
|||
char *cmd = NULL;
|
||||
pthread_t reader_thread;
|
||||
|
||||
|
||||
if (arg->usb_present == 1) {
|
||||
rarg.run = 1;
|
||||
pthread_create(&reader_thread, NULL, &uart_receiver, &rarg);
|
||||
|
@ -248,8 +247,7 @@ int main(int argc, char* argv[]) {
|
|||
|
||||
pthread_t main_loop_threat;
|
||||
|
||||
|
||||
sp = uart_open(argv[1]);
|
||||
sp = uart_open(argv[1]);
|
||||
if (sp == INVALID_SERIAL_PORT) {
|
||||
printf("ERROR: invalid serial port\n");
|
||||
marg.usb_present = 0;
|
||||
|
|
Loading…
Reference in a new issue