Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rincewound committed Dec 8, 2024
1 parent eafcb3b commit a8c61e4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ Normal --> Analyzer
### General

* esc - Change to normal mode
* F2 - Change display mode
* F3 - Change input mode
* F10 - Clear history

### Normal Mode
Expand All @@ -50,20 +52,18 @@ Normal --> Analyzer
* a - select parity
* d - select databits
* m - select display mode
* c - select CRLF settings

### Interactive

* Up - Scroll Receive Buffer Up
* Down - Scroll Receive Buffer Down
* Enter - Send current send buffer (according to CRLF and Input settings)
* F3 - Change input mode
* F4 - Change CRLF mode

### Analyzer

_Note_: Analyzer Features are only available in display HEX mode.

* F2 - Change display mode
* Up/Down - Scroll Receive buffer
* Left/Right - Move analyzer cursor
* e - switch endianness
Expand Down
7 changes: 3 additions & 4 deletions src/analyzer_mode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,9 @@ impl AnalyzerMode {
return;
}

// ToDo!
// if self.settingsmode.get_display_mode() != DisplayMode::Hex {
// return;
// }
if self.active_display_mode != DisplayMode::Hex {
return;
}

if self.analyzer_cursor_pos >= analyzer_data.len() {
return;
Expand Down
7 changes: 0 additions & 7 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,6 @@ impl Default for App {
impl App {
/// runs the application's main loop until the user quits
pub fn run(&mut self, terminal: &mut DefaultTerminal) -> io::Result<()> {
// let (stx, rtx): (Sender<SerialStateMessage>, Receiver<SerialStateMessage>) =
// mpsc::channel();
// let (tx, rx): (Sender<SerialCommand>, Receiver<SerialCommand>) = mpsc::channel();
// self.command_sender = Some(tx);
// self.state_receiver = Some(rtx);
// portthread::port_background_thread(rx, stx);

while !self.exit {
terminal.draw(|frame| self.draw(frame))?;
self.handle_events()?;
Expand Down

0 comments on commit a8c61e4

Please sign in to comment.