diff --git a/public/logo.png b/public/logo.png new file mode 100644 index 0000000..2f63265 Binary files /dev/null and b/public/logo.png differ diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 799b069..addd626 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -16,8 +16,15 @@ fn scan() -> Option> { println!("[LOG] Ports: {:?}", ports); for p in ports { println!("[LOG] Scanning port {}", p.port_name); + match p.port_type { + serialport::SerialPortType::UsbPort(_) => {}, + _ => { + println!("[LOG] Not a USB port"); + continue; + } + } let raw_port = serialport::new(p.port_name.as_str(), 9600) - .timeout(Duration::from_millis(20000)) + .timeout(Duration::from_millis(50)) .open() ; @@ -32,7 +39,7 @@ fn scan() -> Option> { .write("csmenor".as_bytes()).expect("[LOG] Unable to write to port") ; - thread::sleep(Duration::from_millis(1000)); + thread::sleep(Duration::from_millis(10)); let mut result = vec![0; 9]; diff --git a/src/lib/Loading.svelte b/src/lib/Loading.svelte index c7d13f2..19cf1ac 100644 --- a/src/lib/Loading.svelte +++ b/src/lib/Loading.svelte @@ -1,6 +1,6 @@
tady bude nejaky nacitani asi
- penis + penis