Skip to content

Commit

Permalink
afskmdm: Continue to receive data when transmitting in full duplex
Browse files Browse the repository at this point in the history
If the user sets full duplex, we never disable receive.

Signed-off-by: Corey Minyard <[email protected]>
  • Loading branch information
cminyard committed Jan 16, 2024
1 parent 1198e04 commit 4504db3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/gensio_filter_afskmdm.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ struct afskmdm_filter {
/* For reporting key errors. */
struct gensio_pparm_info p;

bool simplex;
unsigned int in_nchans;
unsigned int in_chan;
unsigned int out_nchans;
Expand Down Expand Up @@ -1854,7 +1853,7 @@ afskmdm_ll_write(struct gensio_filter *filter,
if (sfilter->debug & 2)
printf("Processing frame %lu %d %u\n", sfilter->framenr,
sfilter->transmit_state, pos);
if (sfilter->transmit_state > WAITING_TRANSMIT) {
if (!sfilter->full_duplex && sfilter->transmit_state > WAITING_TRANSMIT) {
sfilter->curr_in_pos = sfilter->prevread_size;
goto skip_processing;
}
Expand All @@ -1881,7 +1880,8 @@ afskmdm_ll_write(struct gensio_filter *filter,
sfilter->transmit_state == WAITING_TRANSMIT &&
sfilter->nr_out_sync >= sfilter->tx_delay) {
afskmdm_check_start_xmit(sfilter);
if (sfilter->transmit_state > WAITING_TRANSMIT) {
if (!sfilter->full_duplex &&
sfilter->transmit_state > WAITING_TRANSMIT) {
sfilter->curr_in_pos = sfilter->prevread_size;
goto skip_processing;
}
Expand Down

0 comments on commit 4504db3

Please sign in to comment.