More warning messages for pathological modems.

This commit is contained in:
Jonathan Naylor 2016-03-17 17:54:37 +00:00
parent 40def7dd70
commit 337ec7dc97

View file

@ -887,8 +887,10 @@ RESP_TYPE_MMDVM CModem::getResponse(unsigned char *buffer, unsigned int& length)
return RTM_ERROR;
}
if (ret == 0)
if (ret == 0) {
LogWarning("Timed out after receiving the frame start");
return RTM_TIMEOUT;
}
length = buffer[1U];
@ -903,8 +905,10 @@ RESP_TYPE_MMDVM CModem::getResponse(unsigned char *buffer, unsigned int& length)
return RTM_ERROR;
}
if (ret == 0)
if (ret == 0) {
LogWarning("Timed out after receiving the length");
return RTM_TIMEOUT;
}
switch (buffer[2U]) {
case MMDVM_DSTAR_HEADER: