Fixed borrow issues

This commit is contained in:
Jan-Peter von Hunnius 2025-09-24 13:52:35 +02:00
parent f66f4c5d6c
commit 974fa25a3c
6 changed files with 34 additions and 39 deletions

View file

@ -352,11 +352,11 @@ impl Intel4001 {
self.input_latch
}
pub fn get_io_mode(&self) -> IoMode {
fn get_io_mode(&self) -> IoMode {
self.io_mode
}
pub fn set_io_mode(&mut self, mode: IoMode) {
fn set_io_mode(&mut self, mode: IoMode) {
self.io_mode = mode;
match mode {
IoMode::Input => self.tri_state_io_pins(),