mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 13:00:42 -07: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;
|
char *cmd = NULL;
|
||||||
pthread_t reader_thread;
|
pthread_t reader_thread;
|
||||||
|
|
||||||
|
|
||||||
if (arg->usb_present == 1) {
|
if (arg->usb_present == 1) {
|
||||||
rarg.run = 1;
|
rarg.run = 1;
|
||||||
pthread_create(&reader_thread, NULL, &uart_receiver, &rarg);
|
pthread_create(&reader_thread, NULL, &uart_receiver, &rarg);
|
||||||
|
@ -248,8 +247,7 @@ int main(int argc, char* argv[]) {
|
||||||
|
|
||||||
pthread_t main_loop_threat;
|
pthread_t main_loop_threat;
|
||||||
|
|
||||||
|
sp = uart_open(argv[1]);
|
||||||
sp = uart_open(argv[1]);
|
|
||||||
if (sp == INVALID_SERIAL_PORT) {
|
if (sp == INVALID_SERIAL_PORT) {
|
||||||
printf("ERROR: invalid serial port\n");
|
printf("ERROR: invalid serial port\n");
|
||||||
marg.usb_present = 0;
|
marg.usb_present = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue