mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
chg: textual, to fit in @uzlonewolf 's PR texts
This commit is contained in:
parent
79ed9c3887
commit
b734fe5e18
1 changed files with 4 additions and 4 deletions
|
@ -88,14 +88,15 @@ static bool hookUpPM3() {
|
||||||
bool ret = false;
|
bool ret = false;
|
||||||
sp = uart_open( comport );
|
sp = uart_open( comport );
|
||||||
if (sp == INVALID_SERIAL_PORT) {
|
if (sp == INVALID_SERIAL_PORT) {
|
||||||
printf("ERROR: invalid serial port\n");
|
printf("Reconnect failed, retrying... (reason: invalid serial port)\n");
|
||||||
ret = false;
|
ret = false;
|
||||||
offline = 1;
|
offline = 1;
|
||||||
} else if (sp == CLAIMED_SERIAL_PORT) {
|
} else if (sp == CLAIMED_SERIAL_PORT) {
|
||||||
printf("ERROR: serial port is claimed by another process\n");
|
printf("Reconnect failed, retrying... (reason: serial port is claimed by another process)\n");
|
||||||
ret = false;
|
ret = false;
|
||||||
offline = 1;
|
offline = 1;
|
||||||
} else {
|
} else {
|
||||||
|
printf("Proxmark reconnected\n");
|
||||||
ret = true;
|
ret = true;
|
||||||
offline = 0;
|
offline = 0;
|
||||||
}
|
}
|
||||||
|
@ -178,7 +179,7 @@ void main_loop(char *script_cmds_file, char *script_cmd, bool usb_present) {
|
||||||
|
|
||||||
read_history(".history");
|
read_history(".history");
|
||||||
|
|
||||||
// loops everytime enter is pressed...
|
// loops every time enter is pressed...
|
||||||
while(1) {
|
while(1) {
|
||||||
|
|
||||||
// this should hook up the PM3 again.
|
// this should hook up the PM3 again.
|
||||||
|
@ -270,7 +271,6 @@ void main_loop(char *script_cmds_file, char *script_cmd, bool usb_present) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (sf)
|
if (sf)
|
||||||
fclose(sf);
|
fclose(sf);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue