Handle the return value for M17 RF transmissions.

This commit is contained in:
Jonathan Naylor
2020-10-26 09:39:16 +00:00
parent 9c13baef82
commit d0e8574187
2 changed files with 6 additions and 2 deletions

View File

@@ -332,6 +332,8 @@ bool CM17Control::writeModem(unsigned char* data, unsigned int len)
writeQueueRF(data); writeQueueRF(data);
} }
// Fall through to the next section
} }
} }
} }
@@ -444,6 +446,8 @@ bool CM17Control::writeModem(unsigned char* data, unsigned int len)
LogMessage("M17, received RF end of transmission from %s to %s, %.1f seconds, BER: %.1f%%", source.c_str(), dest.c_str(), float(m_rfFrames) / 25.0F, float(m_rfErrs * 100U) / float(m_rfBits)); LogMessage("M17, received RF end of transmission from %s to %s, %.1f seconds, BER: %.1f%%", source.c_str(), dest.c_str(), float(m_rfFrames) / 25.0F, float(m_rfErrs * 100U) / float(m_rfBits));
writeEndRF(); writeEndRF();
} }
return true;
} }
if (m_rfState == RS_RF_REJECTED) { if (m_rfState == RS_RF_REJECTED) {
@@ -462,7 +466,7 @@ bool CM17Control::writeModem(unsigned char* data, unsigned int len)
return false; return false;
} }
return true; return false;
} }
unsigned int CM17Control::readModem(unsigned char* data) unsigned int CM17Control::readModem(unsigned char* data)

View File

@@ -19,6 +19,6 @@
#if !defined(VERSION_H) #if !defined(VERSION_H)
#define VERSION_H #define VERSION_H
const char* VERSION = "20201025"; const char* VERSION = "20201026";
#endif #endif