When there is no model found, and we have an m devices,
set the number of nodes to 4. This has to be fixed (find a way to detect the number of nodes automatically).
This commit is contained in:
parent
7612cb3588
commit
e9690871c8
|
|
@ -1389,7 +1389,11 @@ translate(struct card *deck, char *formal, char *actual, char *scname, const cha
|
||||||
tfree(name);
|
tfree(name);
|
||||||
bxx_putc(&buffer, ' ');
|
bxx_putc(&buffer, ' ');
|
||||||
|
|
||||||
nnodes = numnodes(c->line, subs, modnames);
|
/* FIXME anothet hack: if no models found for m devices, set number of nodes to 4 */
|
||||||
|
if (!modnames && *(c->line) == 'm')
|
||||||
|
nnodes = 4;
|
||||||
|
else
|
||||||
|
nnodes = numnodes(c->line, subs, modnames);
|
||||||
while (--nnodes >= 0) {
|
while (--nnodes >= 0) {
|
||||||
name = gettok_node(&s);
|
name = gettok_node(&s);
|
||||||
if (name == NULL) {
|
if (name == NULL) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue