Skip to content

Commit

Permalink
fix(input): compile board
Browse files Browse the repository at this point in the history
  • Loading branch information
ghj1222 committed Oct 19, 2023
1 parent 06f1729 commit b816c51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Titanix-rootfs
Submodule Titanix-rootfs updated 2806 files
4 changes: 2 additions & 2 deletions kernel/src/fs/devfs/tty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ impl File for TtyFile {
}
#[cfg(all(not(feature = "submit"), feature = "board_u740"))]
{
if self.buf.load(Ordering::Acquire) != 255 {
if self.buf.lock().top() != 255 {
return Ok(true);
}
let _sum_guard = SumGuard::new();
Expand All @@ -371,7 +371,7 @@ impl File for TtyFile {
}
return Ok(false);
} else {
self.buf.store(c as u8, Ordering::Release);
self.buf.lock().push(c as u8);
return Ok(true);
}
}
Expand Down

0 comments on commit b816c51

Please sign in to comment.