always touch lastupdatetime when storing data of a write message

This commit is contained in:
john30
2017-01-08 10:37:15 +01:00
parent 48a61af28d
commit 39c7678406
+1 -1
View File
@@ -635,7 +635,7 @@ result_t Message::storeLastData(SymbolString& master, SymbolString& slave)
result_t Message::storeLastData(const PartType partType, SymbolString& data, unsigned char index)
{
if (data.size() > 0
&& (this->m_dstAddress == BROADCAST || partType == pt_slaveData || (partType == pt_masterData && isMaster(this->m_dstAddress)))) {
&& (m_isWrite || this->m_dstAddress == BROADCAST || partType == pt_slaveData)) {
time(&m_lastUpdateTime);
}
if (partType == pt_masterData) {