Pārlūkot izejas kodu

cmDevCfg.c: Fixed bug in cmDevCfgNetActiveCfg() and cmDevCfgNetActiveCount() where audio recd was referenced instead of net record.

master
kevin 11 gadus atpakaļ
vecāks
revīzija
ea3e56b780
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2
    2
      cmDevCfg.c

+ 2
- 2
cmDevCfg.c Parādīt failu

1001
   unsigned    n;
1001
   unsigned    n;
1002
 
1002
 
1003
   for(n=0; cp!=NULL; cp=cp->next)
1003
   for(n=0; cp!=NULL; cp=cp->next)
1004
-    if( cp->typeId == kNetDcmTId && cp->u.a.activeFl )
1004
+    if( cp->typeId == kNetDcmTId && cp->u.n.activeFl )
1005
       ++n;
1005
       ++n;
1006
 
1006
 
1007
   return n;
1007
   return n;
1017
   unsigned    i;
1017
   unsigned    i;
1018
 
1018
 
1019
   for(i=0; cp!=NULL; cp=cp->next)
1019
   for(i=0; cp!=NULL; cp=cp->next)
1020
-    if( cp->typeId == kNetDcmTId && cp->u.a.activeFl )
1020
+    if( cp->typeId == kNetDcmTId && cp->u.n.activeFl )
1021
     {
1021
     {
1022
       if( i == idx )
1022
       if( i == idx )
1023
         return &cp->u.n;
1023
         return &cp->u.n;

Notiek ielāde…
Atcelt
Saglabāt