add dedicated error code for arbitration running

This commit is contained in:
john30
2020-04-11 13:28:40 +02:00
parent 165efcb25f
commit e61b507615
3 changed files with 10 additions and 8 deletions
+1 -1
View File
@@ -316,7 +316,7 @@ result_t Device::recv(unsigned int timeout, symbol_t* value, ArbitrationState* a
result_t Device::startArbitration(symbol_t masterAddress) {
if (m_arbitrationCheck) {
return RESULT_ERR_SEND; // should not occur
return RESULT_ERR_ARB_RUNNING; // should not occur
}
if (m_readOnly) {
return RESULT_ERR_SEND;