fix: 'proxmark3.exe -c zzzzz' command from cli didnt work

This commit is contained in:
iceman1001 2017-10-21 14:24:23 +02:00
parent 5da60668dc
commit 80573aa7f6

View file

@ -35,9 +35,6 @@
#define SERIAL_PORT_H "/dev/ttyACM0"
#endif
// a global mutex to prevent interlaced printing from different threads
//pthread_mutex_t print_lock = PTHREAD_MUTEX_INITIALIZER;
static serial_port sp;
static UsbCommand txcmd;
static char comport[255];
@ -237,6 +234,8 @@ void main_loop(char *script_cmds_file, char *script_cmd, bool usb_present) {
// read command from command prompt
cmd = readline(PROXPROMPT);
}
}
}
// execute command
if (cmd) {
@ -262,8 +261,7 @@ void main_loop(char *script_cmds_file, char *script_cmd, bool usb_present) {
break;
}
}
}
}
if (sf)
fclose(sf);