cec: increase physical address with 0x100 per device
authorLars Op den Kamp <lars@opdenkamp.eu>
Sun, 6 Nov 2011 16:34:50 +0000 (17:34 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Sun, 6 Nov 2011 16:34:50 +0000 (17:34 +0100)
src/lib/CECProcessor.cpp

index 1ac2e42335904f793f1be0f2ab08efb5c08688d4..f03f09bef20d7077282fc97df821e04a48b26098 100644 (file)
@@ -155,7 +155,7 @@ bool CCECProcessor::TryLogicalAddress(cec_logical_address address, const char *s
     m_logicalAddresses.set(address);
 
     // TODO
-    m_busDevices[address]->SetPhysicalAddress(CEC_DEFAULT_PHYSICAL_ADDRESS + iIndex);
+    m_busDevices[address]->SetPhysicalAddress(CEC_DEFAULT_PHYSICAL_ADDRESS + (iIndex * 0x100));
 
     return true;
   }