diff --git a/examples/serial/serial.f90 b/examples/serial/serial.f90 index 6bc357a..82a7ebe 100644 --- a/examples/serial/serial.f90 +++ b/examples/serial/serial.f90 @@ -92,6 +92,7 @@ integer function serial_set_attributes(fd, speed, byte_size, stop_bits, parity, tty%c_cflag = c_cflag tty%c_iflag = c_iflag tty%c_oflag = c_oflag + tty%c_lflag = c_lflag tty%c_cc(VMIN) = 0 ! Read doesn't block. tty%c_cc(VTIME) = int(timeout, kind=c_cc_t) ! Read timeout in 1/10 seconds.