[posix-app] fix set radio spinel speed (#3157)

This commit is contained in:
Yakun Xu
2018-10-14 10:59:23 -07:00
committed by Jonathan Hui
parent 12fab0b98e
commit 8e7dba9e4a
+1 -1
View File
@@ -459,7 +459,7 @@ static int OpenFile(const char *aFile, const char *aConfig)
break;
}
VerifyOrExit((rval = cfsetispeed(&tios, speed)) == 0, perror("cfsetispeed"));
VerifyOrExit((rval = cfsetspeed(&tios, speed)) == 0, perror("cfsetspeed"));
VerifyOrExit((rval = tcsetattr(fd, TCSANOW, &tios)) == 0, perror("tcsetattr"));
VerifyOrExit((rval = tcflush(fd, TCIOFLUSH)) == 0);
}