notify sent master address on arbitration success/failure
This commit is contained in:
@@ -348,10 +348,16 @@ bool Device::read(symbol_t* value, bool isAvailable, ArbitrationState* arbitrati
|
|||||||
switch (ch) {
|
switch (ch) {
|
||||||
case ENH_STARTED:
|
case ENH_STARTED:
|
||||||
*arbitrationState = as_won;
|
*arbitrationState = as_won;
|
||||||
|
if (m_listener != NULL) {
|
||||||
|
m_listener->notifyDeviceData(m_arbitrationMaster, false);
|
||||||
|
}
|
||||||
m_arbitrationMaster = SYN;
|
m_arbitrationMaster = SYN;
|
||||||
break;
|
break;
|
||||||
case ENH_FAILED:
|
case ENH_FAILED:
|
||||||
*arbitrationState = as_error;
|
*arbitrationState = as_error;
|
||||||
|
if (m_listener != NULL) {
|
||||||
|
m_listener->notifyDeviceData(m_arbitrationMaster, false);
|
||||||
|
}
|
||||||
m_arbitrationMaster = SYN;
|
m_arbitrationMaster = SYN;
|
||||||
break;
|
break;
|
||||||
case ENH_RECEIVED:
|
case ENH_RECEIVED:
|
||||||
|
|||||||
Reference in New Issue
Block a user