run idle kernel on flash #325
|
@ -837,6 +837,7 @@ pub fn main(timer: GlobalTimer, cfg: Config) {
|
||||||
can_restart_idle.signal();
|
can_restart_idle.signal();
|
||||||
match maybe_idle_kernel {
|
match maybe_idle_kernel {
|
||||||
Some(buffer) => {
|
Some(buffer) => {
|
||||||
|
loop {
|
||||||
info!("loading idle kernel");
|
info!("loading idle kernel");
|
||||||
match handle_flash_kernel(&buffer, &control, &up_destinations, &aux_mutex, &routing_table, timer).await {
|
match handle_flash_kernel(&buffer, &control, &up_destinations, &aux_mutex, &routing_table, timer).await {
|
||||||
Ok(_) => {
|
Ok(_) => {
|
||||||
|
@ -848,6 +849,7 @@ pub fn main(timer: GlobalTimer, cfg: Config) {
|
||||||
},
|
},
|
||||||
Err(_) => warn!("idle kernel loading error")
|
Err(_) => warn!("idle kernel loading error")
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
None => info!("no idle kernel found")
|
None => info!("no idle kernel found")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue