mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 15:09:23 +08:00
Handle the return value for M17 RF transmissions.
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user