diff --git a/notes.md b/notes.md new file mode 100644 index 0000000..da1f519 --- /dev/null +++ b/notes.md @@ -0,0 +1,6 @@ +Boot time isn't static. +Boot time can (in theory) be sped up by forcing a clearing of the screen of all vitals before rebooting. +Clearing the screen of all vitals is theoretically possible in the UI menu, with a Spoof Touch, but I don't know the object name of the 'clear' button. + +Can check for reboot completed by reading in serial, check for `reboot: Restarting System` +once done, read for `login:` diff --git a/src/device.rs b/src/device.rs index a09ddce..256b6b5 100755 --- a/src/device.rs +++ b/src/device.rs @@ -2,8 +2,8 @@ use std::{fs::{self, File}, path::Path, io::Write, thread, time::Duration}; use crate::tty::{TTY, Response,Command}; use rppal::gpio::{Gpio,OutputPin}; -const BOOT_TIME:Duration = Duration::new(40, 0); -const BP_RUN:Duration = Duration::new(55, 0); +const BOOT_TIME:Duration = Duration::new(50, 0); +const BP_RUN:Duration = Duration::new(60, 0); const REBOOTS_SECTION: &str = "Reboots: "; const BP_SECTION: &str = "Successful BP tests: "; const TEMP_SECTION: &str = "Successful temp tests: ";