Skip to content

Commit

Permalink
cpu/native/periph/uart: fix bitwise not
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco committed Feb 10, 2024
1 parent 9501f64 commit 1f51507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpu/native/async_read.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ void native_async_read_remove_handler(int fd)
if (res < 0) {
err(EXIT_FAILURE, "native_async_read_remove_handler(): fcntl(F_GETFL)");
}
unsigned flags = (unsigned)res & !O_ASYNC;
unsigned flags = (unsigned)res & ~O_ASYNC;
res = real_fcntl(fd, F_SETFL, flags);
if (res < 0) {
err(EXIT_FAILURE, "native_async_read_remove_handler(): fcntl(F_SETFL)");
Expand Down

0 comments on commit 1f51507

Please sign in to comment.