done for today

This commit is contained in:
2026-03-21 18:15:35 +00:00
committed by James Norcutt
parent 8e32cc7277
commit 5e649474d9
2 changed files with 19 additions and 190 deletions
+17 -2
View File
@@ -47,8 +47,7 @@ fn run_app<B: Backend>(
tick_rate: Duration,
) -> Result<(), Box<dyn Error>>
where
B::Error: 'static,
{
B::Error: 'static,{
let mut last_tick = Instant::now();
loop {
terminal.draw(|frame| ui::render(frame, &mut app))?;
@@ -77,4 +76,20 @@ where
pub fn get_servers<'a>() -> Vec<Server<'a>> {
//todo: add printer ip addrs
let printers: Vec<Server<'a>> = vec![
crate::app::Server{
name: "Micron+",
location:"Office",
ip:"192.168.1.247",
connected:false,
},
crate::app::Server{
name: "LDO V0.2",
location: "Office",
ip: "192.168.1.217",
connected: false,
}
];
return crate::app::Servers::new(printers).servers;
}