LibCecSharp: fixed return value of GetActiveDevices(). issue #131
authorLars Op den Kamp <lars@opdenkamp.eu>
Fri, 8 Mar 2013 12:31:00 +0000 (13:31 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Fri, 8 Mar 2013 12:51:59 +0000 (13:51 +0100)
src/LibCecSharp/LibCecSharp.cpp

index ecb9bea9223f0f74abefa161f3f7f08818df7078..889bd4758d1fbe2c647ea216fb9d057caba00361 100644 (file)
@@ -377,7 +377,7 @@ namespace CecSharp
 
       for (uint8_t iPtr = 0; iPtr < 16; iPtr++)
         if (activeDevices[iPtr])
-          retVal->Addresses[iDevices++] = (CecLogicalAddress)iPtr;
+          retVal->Set((CecLogicalAddress)iPtr);
 
       return retVal;
     }