mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-05-06 03:49:08 -07:00
Mostly working now, except for log parsing and random checksum failures
This commit is contained in:
11
src/main.rs
11
src/main.rs
@@ -1,19 +1,16 @@
|
||||
mod hdlc;
|
||||
mod diag;
|
||||
mod diag_device;
|
||||
|
||||
use crate::hdlc::{hdlc_encapsulate, hdlc_decapsulate};
|
||||
use crate::diag::{DiagDevice};
|
||||
use crate::diag_device::DiagDevice;
|
||||
|
||||
fn main() -> std::io::Result<()> {
|
||||
let mut dev = DiagDevice::new().unwrap();
|
||||
dev.config_logs().unwrap();
|
||||
|
||||
loop {
|
||||
let msgs = dev.read_response().unwrap();
|
||||
if let Some(msgs) = msgs {
|
||||
for msg in msgs {
|
||||
println!("msg: {:?}", msg);
|
||||
}
|
||||
for msg in dev.read_response().unwrap() {
|
||||
println!("msg: {:?}", msg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user