X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/8556b852ed769280d1b63054ab1bd08fa19b746a..2115626711dd85185d075865c8fa3294f884e046:/client/proxmark3.c?ds=sidebyside diff --git a/client/proxmark3.c b/client/proxmark3.c index fe3ba7c5..9105ca62 100644 --- a/client/proxmark3.c +++ b/client/proxmark3.c @@ -38,14 +38,7 @@ static void *usb_receiver(void *targ) while (arg->run) { if (ReceiveCommandPoll(&cmdbuf)) { - for (int i = 0; i < strlen(PROXPROMPT); i++) - putchar(0x08); UsbCommandReceived(&cmdbuf); - // there is a big bug ) - if (cmdbuf.cmd > 0x0100 && cmdbuf.cmd < 0x0110) { // debug commands - rl_on_new_line_with_prompt(); - rl_forced_update_display(); - } fflush(NULL); } } @@ -75,7 +68,6 @@ static void *main_loop(void *targ) if (cmd[0] != 0x00) { if (strncmp(cmd, "quit", 4) == 0) { - write_history(".history"); break; } @@ -89,6 +81,8 @@ static void *main_loop(void *targ) } } + write_history(".history"); + if (arg->usb_present == 1) { rarg.run = 0; pthread_join(reader_thread, NULL);