mirror of
https://github.com/markqvist/OpenModem.git
synced 2025-08-03 04:16:13 -04:00
Independent ADC and DAC sample rates
This commit is contained in:
parent
8b2e66eb57
commit
79aa4620ba
6 changed files with 78 additions and 47 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue