]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - client/proxmark3.c
Fixes to Mifare nested function...
[proxmark3-svn] / client / proxmark3.c
index 209e132c6f683e08d9291f4a6051e32ef74b24b8..9105ca62b8acc7ce1f808de59477a291537b1550 100644 (file)
@@ -38,15 +38,7 @@ static void *usb_receiver(void *targ)
 
   while (arg->run) {
     if (ReceiveCommandPoll(&cmdbuf)) {
 
   while (arg->run) {
     if (ReceiveCommandPoll(&cmdbuf)) {
-      for (int i = 0; i < strlen(PROXPROMPT); i++)
-        putchar(0x08);
       UsbCommandReceived(&cmdbuf);
       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);
     }
   }
       fflush(NULL);
     }
   }
@@ -76,7 +68,6 @@ static void *main_loop(void *targ)
                        
                        if (cmd[0] != 0x00) {
                                if (strncmp(cmd, "quit", 4) == 0) {
                        
                        if (cmd[0] != 0x00) {
                                if (strncmp(cmd, "quit", 4) == 0) {
-                                       write_history(".history");
                                        break;
                                }
                                
                                        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);
   if (arg->usb_present == 1) {
     rarg.run = 0;
     pthread_join(reader_thread, NULL);
Impressum, Datenschutz