Commit 7459fe10 authored by Thomas BOUTROUE's avatar Thomas BOUTROUE

Fix build warning

parent 5acd70f8
......@@ -1154,8 +1154,9 @@ void CanOpenProtocolManager::refreshPdoMapping (void) {
if (CanOpenEntry * entryConfig = m_objDict->getEntry (idx)) {
const CanOpenCounter pdoNum = (idx - CanOpenObjDictRanges::PDOTX_CONFIG_START);
if (CanOpenSubEntry * subEntryCobId = entryConfig->getSubEntry (0x01)) {
CanOpenCobId cobId = subEntryCobId->readAs<quint32> ();
if (CanOpenSubEntry * subEntryTransmitType = entryConfig->getSubEntry (0x02)) {
CanOpenCobId cobId = subEntryCobId->readAs<quint32> ();
Q_UNUSED (subEntryTransmitType)
if (cobId != 0x000) {
if (CanOpenEntry * entryMapping = m_objDict->getEntry (CanOpenIndex (CanOpenObjDictRanges::PDOTX_MAPPING_START + pdoNum))) {
CanOpenPdoConfigCache * pdoConfCache = new CanOpenPdoConfigCache;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment