Implemented CSMA

This commit is contained in:
Mark Qvist 2019-11-03 20:50:55 +01:00
parent e80db61859
commit 8e60c1e52c
2 changed files with 24 additions and 4 deletions

View file

@ -123,6 +123,7 @@ static void AFSK_txStart(Afsk *afsk) {
afsk->bitstuffCount = 0;
afsk->sending = true;
afsk->sending_data = true;
LED_RX_OFF();
LED_TX_ON();
afsk->preambleLength = DIV_ROUND(config_preamble * BITRATE, 8000);
AFSK_DAC_IRQ_START();