mirror of
https://github.com/markqvist/OpenModem.git
synced 2025-05-17 05:42:18 -04:00
Updated precompiled firmwares. Added TXWAIT option.
This commit is contained in:
parent
d1da74db96
commit
d03564928b
6 changed files with 2734 additions and 2651 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue