From 9fd4fb26b9dde4d9e29c4be19bcee98de695af04 Mon Sep 17 00:00:00 2001 From: Karl Knutsson Date: Wed, 8 Oct 2014 20:43:11 +0200 Subject: [PATCH] OP-1532 fix non-ppm mode Always send packets from the coordinator. Previously the coordinator only always sent packets on channel 0. This scheme doesn't work with with the change to use 32 channel. --- flight/pios/common/pios_rfm22b.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flight/pios/common/pios_rfm22b.c b/flight/pios/common/pios_rfm22b.c index 0269cedb2..2783e09da 100644 --- a/flight/pios/common/pios_rfm22b.c +++ b/flight/pios/common/pios_rfm22b.c @@ -1803,8 +1803,8 @@ static enum pios_radio_event radio_txStart(struct pios_rfm22b_dev *radio_dev) len += (radio_dev->tx_out_cb)(radio_dev->tx_out_context, p + len, max_data_len - len, NULL, &need_yield); } - // Always send a packet on the sync channel if this modem is a coordinator. - if ((len == 0) && ((radio_dev->channel_index != 0) || !rfm22_isCoordinator(radio_dev))) { + // Always send a packet if this modem is a coordinator. + if ((len == 0) && !rfm22_isCoordinator(radio_dev)) { return RADIO_EVENT_RX_MODE; }