Browse Source

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

master
kevin 11 years ago
parent
commit
ea3e56b780
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      cmDevCfg.c

+ 2
- 2
cmDevCfg.c View File

@@ -1001,7 +1001,7 @@ unsigned          cmDevCfgNetActiveCount( cmDevCfgH_t h )
1001 1001
   unsigned    n;
1002 1002
 
1003 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 1005
       ++n;
1006 1006
 
1007 1007
   return n;
@@ -1017,7 +1017,7 @@ const cmDcmNet_t* cmDevCfgNetActiveCfg( cmDevCfgH_t h, unsigned idx )
1017 1017
   unsigned    i;
1018 1018
 
1019 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 1022
       if( i == idx )
1023 1023
         return &cp->u.n;

Loading…
Cancel
Save