mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-19 09:00:54 +00:00
fix Gid passing issue to status thread
This commit is contained in:
parent
53713baaa6
commit
9252455795
2 changed files with 4 additions and 2 deletions
|
|
@ -159,7 +159,7 @@ fn xmain() -> ! {
|
|||
canvases = recompute_canvases(canvases, Rectangle::new(Point::new(0, 0), screensize));
|
||||
|
||||
// make a thread to manage the status bar
|
||||
xous::create_thread_simple(status_thread, chatlayout.status).expect("GAM: couldn't create status thread");
|
||||
xous::create_thread_simple(status_thread, chatlayout.status.gid()).expect("GAM: couldn't create status thread");
|
||||
|
||||
let mut last_time: u64 = ticktimer_server::elapsed_ms(ticktimer_conn).unwrap();
|
||||
info!("GAM: entering main loop");
|
||||
|
|
|
|||
|
|
@ -7,7 +7,9 @@ use graphics_server::*;
|
|||
use core::fmt::Write;
|
||||
use core::convert::TryFrom;
|
||||
|
||||
pub fn status_thread(status_gid: Gid) {
|
||||
pub fn status_thread(canvas_gid: [u32; 4]) {
|
||||
let status_gid: Gid = Gid::new(canvas_gid);
|
||||
|
||||
info!("GAM|status: registering GAM|status thread");
|
||||
let status_sid = xous_names::register_name(xous::names::SERVER_NAME_STATUS).expect("GAM|status: can't register server");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue