removed tcflush(fd, TCOFLUSH); which causes problems on the odroid