ammeter.sym type set to "ammeter" instead of "probe", so will be greyed out if *_ignore attr is set

This commit is contained in:
stefan schippers 2023-05-11 00:47:59 +02:00
parent 5e281e7f10
commit f110e817ef
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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"}