From ec7ac317aa94efcc439572d0c2b7f221cd077c96 Mon Sep 17 00:00:00 2001 From: h_vogt Date: Sun, 17 Jul 2016 17:44:18 +0200 Subject: [PATCH] inpcom.c, enable current measurement in B-line like Isup 1 0 1 Rsup 1 0 2 Bsup 2 0 i=i(Isup) Rb 2 0 1 --- src/frontend/inpcom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 583ab621e..466fc139b 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -6607,8 +6607,8 @@ inp_meas_current(struct line *deck) s = u = strstr(s, "i("); /* we have found it, but not (in error) at the beginning of the line */ if (s && s > v) { - /* '{' if at beginning of expression */ - if (is_arith_char(s[-1]) || s[-1] == '{') { + /* '{' if at beginning of expression, '=' possible in B-line */ + if (is_arith_char(s[-1]) || s[-1] == '{' || s[-1] == '=') { s += 2; if (*s == 'v') { // printf("i(v...) found in\n%s\n not converted!\n\n", curr_line);