Independent ADC and DAC sample rates

This commit is contained in:
Mark Qvist 2019-01-05 13:47:46 +01:00
parent 8b2e66eb57
commit 79aa4620ba
6 changed files with 78 additions and 47 deletions

View file

@ -28,7 +28,7 @@ void kiss_init(AX25Ctx *ax25, Afsk *afsk, Serial *ser) {
}
// TODO: Remove debug functions
//size_t decodes = 0;
// size_t decodes = 0;
void kiss_messageCallback(AX25Ctx *ctx) {
// decodes++;
// printf("%d\r\n", decodes);
@ -60,7 +60,7 @@ void kiss_csma(AX25Ctx *ctx, uint8_t *buf, size_t len) {
}
}
while (!sent) {
if(!channel->hdlc.dcd) {
if(CONFIG_FULL_DUPLEX || !channel->hdlc.dcd) {
uint8_t tp = rand() & 0xFF;
if (tp < p) {
ax25_sendRaw(ctx, buf, len);