m_processor->AddLog(level, strMessage);
}
-void CCECBusDevice::SetVendorId(uint32_t iVendorId, uint8_t iVendorClass /* = 0 */)
+void CCECBusDevice::SetVendorId(uint64_t iVendorId, uint8_t iVendorClass /* = 0 */)
{
m_iVendorId = iVendorId;
m_iVendorClass = iVendorClass;
virtual cec_logical_address GetMyLogicalAddress(void) const;
virtual uint16_t GetMyPhysicalAddress(void) const;
- virtual void SetVendorId(uint32_t iVendorId, uint8_t iVendorClass = 0);
+ virtual void SetVendorId(uint64_t iVendorId, uint8_t iVendorClass = 0);
virtual const char *GetVendorName(void) const { return CECVendorIdToString(m_iVendorId); }
- virtual uint32_t GetVendorId(void) const { return m_iVendorId; }
+ virtual uint64_t GetVendorId(void) const { return m_iVendorId; }
virtual uint8_t GetVendorClass(void) const { return m_iVendorClass; }
virtual uint64_t GetLastActive(void) const { return m_iLastActive; }
cec_logical_address m_iLogicalAddress;
CCECProcessor *m_processor;
CCECCommandHandler *m_handler;
- uint32_t m_iVendorId;
+ uint64_t m_iVendorId;
uint8_t m_iVendorClass;
uint64_t m_iLastActive;
CMutex m_mutex;
return;
}
- uint32_t iVendorId = ((uint32_t)data[0] << 3) +
- ((uint32_t)data[1] << 2) +
- (uint32_t)data[2];
+ uint64_t iVendorId = ((uint64_t)data[0] << 3) +
+ ((uint64_t)data[1] << 2) +
+ (uint64_t)data[2];
m_busDevices[(uint8_t)device]->SetVendorId(iVendorId, data.size >= 4 ? data[3] : 0);
}