Skip to content

Commit

Permalink
do not register own master address during send
Browse files Browse the repository at this point in the history
  • Loading branch information
john30 committed Apr 17, 2017
1 parent 47ed6dd commit b77e0d0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ebusd/bushandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ bool GrabbedMessage::dump(const bool unknown, MessageMap* messages, bool first,
if (!types) {
return true;
}
bool master = isMaster(dstAddress) || dstAddress == BROADCAST || m_lastSlave.size() <= 1 || m_lastSlave[0] == 0;
bool master = isMaster(dstAddress) || dstAddress == BROADCAST || m_lastSlave.getDataSize() <= 0;
SymbolString *input;
if (master) {
input = &m_lastMaster;
Expand Down Expand Up @@ -1030,7 +1030,9 @@ void BusHandler::receiveCompleted() {
logError(lf_bus, "invalid self-addressed message from %2.2x", srcAddress);
return;
}
addSeenAddress(srcAddress);
if (!m_currentRequest) {
addSeenAddress(srcAddress);
}
addSeenAddress(dstAddress);

bool master = isMaster(dstAddress);
Expand Down

0 comments on commit b77e0d0

Please sign in to comment.