Originally only '.temp 125' had been accepted.
There has not been any error message if '=' was used, the temperature just had been set to 0°C. Now also '.temp=125' or .temp='param' are accepted.
This commit is contained in:
parent
23e9df0181
commit
5a065c1657
|
|
@ -1006,9 +1006,12 @@ inp_spsource(FILE *fp, bool comfile, char *filename, bool intfile)
|
|||
curr_meas->nextcard = NULL;
|
||||
dd = prev_card;
|
||||
}
|
||||
/* get temp from deck */
|
||||
/* get temp from deck .temp 125 or .temp=125 */
|
||||
if (ciprefix(".temp", dd->line)) {
|
||||
s = skip_ws(dd->line + 5);
|
||||
if (*s == '=') {
|
||||
s = skip_ws(s + 1);
|
||||
}
|
||||
if (temperature) {
|
||||
txfree(temperature);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue