Skip to content

Commit 8113401

Browse files
committed
Fix find session in fifo
1 parent b435582 commit 8113401

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

cpp/src/Msg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ namespace OpenZWave
323323
m_buffer[5] += 4;
324324
m_length += 4;
325325

326-
snprintf(str, sizeof(str), "Supervisioned: %s", m_logText.c_str());
326+
snprintf(str, sizeof(str), "Supervisioned (session=%d): %s", m_supervision_session_id, m_logText.c_str());
327327
m_logText = str;
328328
}
329329

cpp/src/command_classes/Supervision.cpp

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,18 @@ namespace OpenZWave
114114
pCommandClass->SupervisionSessionSuccess(session_id, _instance);
115115
}
116116
}
117-
}
117+
else
118+
{
119+
Log::Write(LogLevel_Warning, GetNodeId(), "Received SupervisionReport for unknown CC %d", it->command_class_id);
120+
}
118121

119-
if (more_status_updates == 0)
120-
{
121-
m_sessions.erase(it);
122-
}
122+
if (more_status_updates == 0)
123+
{
124+
m_sessions.erase(it);
125+
}
123126

124-
return;
127+
return;
128+
}
125129
}
126130

127131
Log::Write(LogLevel_Warning, GetNodeId(), "Received SupervisionReport: unknown session %d, status %s, duration %d sec, more status updates %d",

0 commit comments

Comments
 (0)