- Uaah. Bugfix for c2 patchvalues.

This commit is contained in:
Carsten Paeth 2002-05-23 12:52:36 +00:00
parent 8b8292dbdc
commit b0f3856520
1 changed files with 13 additions and 0 deletions

View File

@ -2,6 +2,9 @@
* $Id$
*
* $Log$
* Revision 1.8 2001/04/18 10:21:42 calle
* support for "AVM ISDN Controller C2" added.
*
* Revision 1.7 2000/08/31 08:23:35 calle
* - produce an error message, if a driver could not be loaded.
*
@ -953,6 +956,16 @@ static struct capicard *load_firmware(int contr, struct capicard *card)
cp = cp->next;
}
next = cp->next;
} else if (strcmp(card->driver, "c2") == 0) {
struct capicard *cp;
int i;
for (i=0,cp=card; i < 2; i++) {
addpatchbyte("CtlrNr", i);
addpatchvalues(&cp->patchinfo);
if (cp->next && strcmp(cp->next->driver, "c2") == 0)
cp = cp->next;
}
next = cp->next;
} else {
addpatchvalues(&card->patchinfo);
}