start refactoring transmitting

This commit is contained in:
Wolfgang Hottgenroth 2020-11-25 12:08:13 +01:00
parent 02c093723e
commit b328e41984
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F

View File

@ -498,12 +498,14 @@ void mbusCommExec() {
case MBCS_ERROR:
// coloredMsg(LOG_RED, false, "mbc hre [%d] state ERROR", mbusCommHandle.requestId);
coloredMsg(LOG_RED, true, "mbc hre [%d] error", mbusCommHandle.requestId);
show(LED_RED, ON);
mbusCommHandle.state = MBCS_ERROR_CONTINUED;
// no break
case MBCS_ERROR_CONTINUED:
// stay here until timeout occurs
// every error will be collected by a timeout to receive all data still on the wire
// to avoid leaking old data in responses for new requests
break;
case MBCS_TIMEOUT: