Improved data carrier detection

This commit is contained in:
Mark Qvist 2018-04-24 17:34:59 +02:00
parent 01c629a6fd
commit b7ffba0e92
6 changed files with 35 additions and 7 deletions

View file

@ -80,8 +80,7 @@ void kiss_csma(AX25Ctx *ctx, uint8_t *buf, size_t len) {
}
if (FLOWCONTROL) {
while (channel->sending_data) { /* Wait */ }
while (!ctx->ready_for_data) { /* Wait */ }
fputc(FEND, &serial->uart0);
fputc(CMD_READY, &serial->uart0);
fputc(0x01, &serial->uart0);