X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/ab8b654efa9524b494014efd35ac426aaa42884b..51969283ec562f968d997a5581724d86d3e8b1d4:/client/proxmark3.c diff --git a/client/proxmark3.c b/client/proxmark3.c index 209e132c..9105ca62 100644 --- a/client/proxmark3.c +++ b/client/proxmark3.c @@ -38,15 +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 - printf(">"); -// rl_on_new_line_with_prompt(); -// rl_forced_update_display(); - } fflush(NULL); } } @@ -76,7 +68,6 @@ static void *main_loop(void *targ) if (cmd[0] != 0x00) { if (strncmp(cmd, "quit", 4) == 0) { - write_history(".history"); break; } @@ -90,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);