/trunk/JavaSerial/NativeCode/SerialPortImpl.c |
---|
1296,7 → 1296,7 |
} |
if( FD_ISSET( desc->port, &fdset ) ){ |
stat = read( desc->port, &ret_val, sizeof( ret_val ) ); |
stat = read( desc->port, &ret_val, 1 ); |
if( stat < 0 ){ |
//throw new exception |
throw_io_exception( env, errno ); |