add: 'hw connect' - lets you connect to a specified serial port. If already connected, it disconnects current port before.

This commit is contained in:
iceman1001 2019-05-07 11:05:05 +02:00
commit 61d250a7f8
3 changed files with 62 additions and 16 deletions

View file

@ -158,8 +158,12 @@ main_loop(char *script_cmds_file, char *script_cmd) {
printprompt = true;
} else {
rl_event_hook = check_comm;
cmd = readline(PROXPROMPT);
//rl_event_hook = check_comm;
if (session.pm3_present )
cmd = readline(PROXPROMPT);
else
cmd = readline("[offline] "PROXPROMPT);
fflush(NULL);
}
}