fix graph dump
This commit is contained in:
parent
25d598f30b
commit
8e1863847f
@ -122,7 +122,7 @@ macro_rules! do_dump_stg {
|
||||
if $cli.dump_graph {
|
||||
let dump_path = $cli.dump_name.clone().unwrap().with_extension(if $c=="" {"dot"} else {$c});
|
||||
println!("Dumping graph to {:?}", &dump_path);
|
||||
if let Some(md) = $state.named_metadata_map_mut().get_mut::<STGFeedbackState<FreeRTOSSystem>>("stgfeedbackstate") {
|
||||
if let Ok(md) = $state.metadata_mut::<STGFeedbackState<FreeRTOSSystem>>() {
|
||||
let out = md.graph.map(|_i,x| x.color_print(&md.systemstate_index), |_i,x| x.color_print());
|
||||
let outs = Dot::with_config(&out, &[]).to_string();
|
||||
let outs = outs.replace("\\\"","\"");
|
||||
|
Loading…
x
Reference in New Issue
Block a user