mirror of
https://github.com/markqvist/OpenModem.git
synced 2025-07-20 13:58:43 -04:00
Updated buffer lengths
This commit is contained in:
parent
00dcf5a300
commit
42dcd121cc
4 changed files with 21 additions and 22 deletions
|
@ -32,9 +32,6 @@ void ax25_poll(AX25Ctx *ctx) {
|
|||
if (!ctx->escape && c == HDLC_FLAG) {
|
||||
if (ctx->frame_len >= AX25_MIN_FRAME_LEN) {
|
||||
if (ctx->crc_in == AX25_CRC_CORRECT || CONFIG_PASSALL) {
|
||||
#if OPEN_SQUELCH == true
|
||||
LED_RX_ON();
|
||||
#endif
|
||||
ax25_decode(ctx);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -53,13 +53,14 @@ void kiss_messageCallback(AX25Ctx *ctx) {
|
|||
|
||||
void kiss_csma(AX25Ctx *ctx, uint8_t *buf, size_t len) {
|
||||
bool sent = false;
|
||||
if (CONFIG_AFSK_TXWAIT > 0) {
|
||||
ticks_t wait_start = timer_clock();
|
||||
long wait_ticks = ms_to_ticks(CONFIG_AFSK_TXWAIT);
|
||||
while (timer_clock() - wait_start < wait_ticks) {
|
||||
cpu_relax();
|
||||
}
|
||||
}
|
||||
// TODO: Determine if this is to be removed
|
||||
// if (CONFIG_AFSK_TXWAIT > 0) {
|
||||
// ticks_t wait_start = timer_clock();
|
||||
// long wait_ticks = ms_to_ticks(CONFIG_AFSK_TXWAIT);
|
||||
// while (timer_clock() - wait_start < wait_ticks) {
|
||||
// cpu_relax();
|
||||
// }
|
||||
// }
|
||||
while (!sent) {
|
||||
if(CONFIG_FULL_DUPLEX || !channel->hdlc.dcd) {
|
||||
uint8_t tp = rand() & 0xFF;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue