Improved data carrier detection

This commit is contained in:
Mark Qvist 2018-04-24 15:34:50 +02:00
parent 145b1154f9
commit 01c629a6fd
4 changed files with 25 additions and 4 deletions

View file

@ -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);