Commit 428d6915 authored by lcgamboa's avatar lcgamboa

serial error dsr fixed

parent 3b99ed28
......@@ -374,7 +374,7 @@ int avr_serial_get_dsr(void)
return (state & MS_DSR_ON);
}
#else
if( serialfd >= 0 )
if( serialfd > 0 )
{
int state;
ioctl(serialfd, TIOCMGET ,&state);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment