diff --git a/src/hilight.c b/src/hilight.c index 8e480cbc..4d7a78cb 100644 --- a/src/hilight.c +++ b/src/hilight.c @@ -1710,7 +1710,7 @@ void hilight_net(int viewer) /* xctx->hilight_nets=1; */ /* done in hilight_hash_lookup() */ xctx->inst[n].color = xctx->hilight_color; inst_hilight_hash_lookup(xctx->inst[n].instname, xctx->hilight_color, XINSERT_NOREPLACE); - if(type && (!strcmp(type, "current_probe") || !strcmp(type, "vsource")) ) { + if(type && (!strcmp(type, "ammeter") || !strcmp(type, "vsource")) ) { if(viewer == XSCHEM_GRAPH) send_current_to_graph(&s, sim_is_xyce, xctx->inst[n].instname); else if(viewer == GAW) send_current_to_gaw(sim_is_xyce, xctx->inst[n].instname); else if(viewer == BESPICE) send_current_to_bespice(sim_is_xyce, xctx->inst[n].instname); diff --git a/xschem_library/devices/ammeter.sym b/xschem_library/devices/ammeter.sym index 629bb9d3..a9ec2c49 100644 --- a/xschem_library/devices/ammeter.sym +++ b/xschem_library/devices/ammeter.sym @@ -1,7 +1,7 @@ v {xschem version=3.1.0 file_version=1.2 } G {} -K {type=probe +K {type=ammeter format="@name @pinlist 0 .save I( ?1 @name )" template="name=Vmeas"}