mirror of
https://github.com/espressif/openthread.git
synced 2026-09-01 14:59:54 +00:00
[posix-app] fix set radio spinel speed (#3157)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user