Updated precompiled firmwares. Added TXWAIT option.

This commit is contained in:
Mark Qvist 2018-12-01 11:48:29 +01:00
parent d1da74db96
commit d03564928b
6 changed files with 2734 additions and 2651 deletions

View file

@ -47,6 +47,13 @@ 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();
}
}
while (!sent) {
//puts("Waiting in CSMA");
if(!channel->hdlc.dcd) {