1
0
forked from fsfw/fsfw

new dvice com IF return value

This commit is contained in:
2020-04-05 00:23:29 +02:00
parent bd468a1b74
commit 80b1d28bc8
2 changed files with 22 additions and 16 deletions

View File

@ -557,9 +557,6 @@ void DeviceHandlerBase::doSendRead() {
if (result == RETURN_OK) {
cookieInfo.state = COOKIE_READ_SENT;
}
/* else if(result == DeviceCommunicationIF::NO_READ_REQUEST) {
return;
}*/
else {
triggerEvent(DEVICE_REQUESTING_REPLY_FAILED, result);
//We can't inform anyone, because we don't know which command was sent last.
@ -594,7 +591,7 @@ void DeviceHandlerBase::doGetRead() {
return;
}
if (receivedDataLen == 0)
if (receivedDataLen == 0 or result == DeviceCommunicationIF::NO_REPLY_RECEIVED)
return;
if (wiretappingMode == RAW) {