Handle the return value for M17 RF transmissions.
This commit is contained in:
parent
9c13baef82
commit
d0e8574187
|
@ -332,6 +332,8 @@ bool CM17Control::writeModem(unsigned char* data, unsigned int len)
|
|||
|
||||
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));
|
||||
writeEndRF();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
if (m_rfState == RS_RF_REJECTED) {
|
||||
|
@ -462,7 +466,7 @@ bool CM17Control::writeModem(unsigned char* data, unsigned int len)
|
|||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
unsigned int CM17Control::readModem(unsigned char* data)
|
||||
|
|
Loading…
Reference in a new issue