FIX: it seem the fcntl returns -1,.. which made the flasher fail.

This commit is contained in:
iceman1001 2016-05-05 21:13:12 +02:00
commit 04da5cd92b

View file

@ -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);