FIX: it seem the fcntl returns -1,.. which made the flasher fail.
This commit is contained in:
@@ -123,7 +123,7 @@ 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) {
|
||||||
perror("fcntl");
|
//perror("fcntl");
|
||||||
}
|
}
|
||||||
close(spu->fd);
|
close(spu->fd);
|
||||||
free(sp);
|
free(sp);
|
||||||
|
|||||||
Reference in New Issue
Block a user