This commit is contained in:
john30
2017-04-23 11:58:54 +02:00
parent 611cb562e2
commit 43042eec9d
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -457,7 +457,7 @@ void MainLoop::notifyDeviceData(const symbol_t symbol, bool received) {
} }
if (symbol != SYN) { if (symbol != SYN) {
if (received && !m_logRawLastReceived && symbol == m_logRawLastSymbol) { if (received && !m_logRawLastReceived && symbol == m_logRawLastSymbol) {
return; // skip received echo of previously sent symbol return; // skip received echo of previously sent symbol
} }
if (m_logRawBuffer.tellp() == 0 || received != m_logRawLastReceived) { if (m_logRawBuffer.tellp() == 0 || received != m_logRawLastReceived) {
m_logRawLastReceived = received; m_logRawLastReceived = received;
+2 -1
View File
@@ -2322,7 +2322,8 @@ vector<string> MessageMap::getLoadedFiles() const {
return ret; return ret;
} }
bool MessageMap::getLoadedFileInfo(const string filename, string& comment, size_t* hash, size_t* size, time_t* time) const { bool MessageMap::getLoadedFileInfo(const string filename, string& comment, size_t* hash, size_t* size, time_t* time)
const {
const auto it = m_loadedFileInfos.find(filename); const auto it = m_loadedFileInfos.find(filename);
if (it == m_loadedFileInfos.end()) { if (it == m_loadedFileInfos.end()) {
comment = ""; comment = "";