Merge branch 'master' of github.com:john30/ebusd

This commit is contained in:
john30
2017-01-29 17:07:12 +01:00
+1 -1
View File
@@ -659,7 +659,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
&& (m_isWrite || this->m_dstAddress == BROADCAST || partType == pt_slaveData)) {
&& (m_isWrite || this->m_dstAddress == BROADCAST || partType == pt_slaveData || (partType == pt_masterData && isMaster(this->m_dstAddress)))) {
time(&m_lastUpdateTime);
}
if (partType == pt_masterData) {