mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-04 07:11:10 +08:00
silent uart_close error message as it can be called from uart_open failing modes, e.g. when waiting for port to appear
This commit is contained in:
parent
82e0568e65
commit
fee9c0ef84
1 changed files with 2 additions and 1 deletions
|
@ -238,7 +238,8 @@ void uart_close(const serial_port sp) {
|
||||||
// Does the system allows us to place a lock on this file descriptor
|
// Does the system allows us to place a lock on this file descriptor
|
||||||
int err = fcntl(spu->fd, F_SETLK, &fl);
|
int err = fcntl(spu->fd, F_SETLK, &fl);
|
||||||
if (err == -1) {
|
if (err == -1) {
|
||||||
printf("[!] UART error while closing port\n");
|
//silent error message as it can be called from uart_open failing modes, e.g. when waiting for port to appear
|
||||||
|
//printf("[!] UART error while closing port\n");
|
||||||
}
|
}
|
||||||
close(spu->fd);
|
close(spu->fd);
|
||||||
free(sp);
|
free(sp);
|
||||||
|
|
Loading…
Reference in a new issue