diff --git a/Cargo.lock b/Cargo.lock index 05fa43b..43f5093 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -466,7 +466,7 @@ dependencies = [ [[package]] name = "seymour_poc_rust" -version = "2.0.0" +version = "2.0.1" dependencies = [ "chrono", "derivative", diff --git a/Cargo.toml b/Cargo.toml index 7e2a685..5226b1a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ [package] name = "seymour_poc_rust" -version = "2.0.0" +version = "2.0.1" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/src/main.rs b/src/main.rs index f59cb3a..629c7ad 100755 --- a/src/main.rs +++ b/src/main.rs @@ -2,6 +2,8 @@ use seymour_poc_rust::{device::Device, tty::{self,TTY,Response},gpio_facade::Gpi use std::{io::{stdin,stdout,Write},thread::{self, JoinHandle},path::Path,fs}; use chrono::{DateTime,Local}; +const VERSION:&str="2.0.1"; + fn int_input_filtering(prompt:Option<&str>) -> u64{ let internal_prompt = prompt.unwrap_or(">>>"); let mut user_input:String = String::new(); @@ -35,6 +37,7 @@ fn input_filtering(prompt:Option<&str>) -> String{ fn main(){ setup_logs(); + log::info!("Seymour Life Testing version: {}",VERSION); let gpio = &mut GpioPins::new(); let available_ttys = std::fs::read_dir("/dev/serial/by-id").unwrap(); let mut possible_devices:Vec> = Vec::new();