mirror of
https://github.com/markqvist/OpenModem.git
synced 2025-06-24 06:14:16 -04:00
Improved data carrier detection
This commit is contained in:
parent
145b1154f9
commit
01c629a6fd
4 changed files with 25 additions and 4 deletions
|
@ -49,7 +49,7 @@ void kiss_csma(AX25Ctx *ctx, uint8_t *buf, size_t len) {
|
|||
bool sent = false;
|
||||
while (!sent) {
|
||||
//puts("Waiting in CSMA");
|
||||
if(!channel->hdlc.receiving) {
|
||||
if(!channel->hdlc.dcd) {
|
||||
uint8_t tp = rand() & 0xFF;
|
||||
if (tp < p) {
|
||||
ax25_sendRaw(ctx, buf, len);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue