diff options
author | INSUN PYO <insun.pyo@samsung.com> | 2021-12-09 17:06:53 +0900 |
---|---|---|
committer | Hyotaek Shim <hyotaek.shim@samsung.com> | 2021-12-09 09:07:35 +0000 |
commit | 1fd0a40d9d0978fdfa8dae6e221c08b650a5224b (patch) | |
tree | fcfc4505c5226c1d394a17ecde359511db1b4b5e | |
parent | 7c2d2cae5449ec799bd7088f3e6714c369835c4d (diff) | |
download | peripheral-io-tizen_7.0_hotfix.tar.gz peripheral-io-tizen_7.0_hotfix.tar.bz2 peripheral-io-tizen_7.0_hotfix.zip |
uart: remove O_NONBLOCK flagtizen_7.0_m2_releasesubmit/tizen/20211209.090954accepted/tizen/unified/20211210.115150accepted/tizen/7.0/unified/hotfix/20221116.104803accepted/tizen/7.0/unified/20221110.060853tizen_7.0_hotfixaccepted/tizen_7.0_unified_hotfix
Sometimes, peripheral_uart_read() returns -EAGAIN.
If you retry it many times, it returns correct value.
Change-Id: I2a7f9aacc7d0ca47ca06cca52382c0185c76f4fb
-rw-r--r-- | src/peripheral_uart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peripheral_uart.c b/src/peripheral_uart.c index 8453095..2e86a28 100644 --- a/src/peripheral_uart.c +++ b/src/peripheral_uart.c @@ -120,7 +120,7 @@ int peripheral_uart_open_flags(int port, peripheral_open_flags_e flags, peripher }; char path[DEV_PATH_FMT_MAX_SIZE] = {0, }; /* space for /dev/ttyXXX%d */ - const int FLAGS = O_RDWR | O_NOCTTY | O_NONBLOCK | O_CLOEXEC; + const int FLAGS = O_RDWR | O_NOCTTY | O_CLOEXEC; int fd = -1; int retval = peripheral_uart_find_devpath(port, path, DEV_PATH_FMT_MAX_SIZE); |