mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-17 02:52:12 +01:00
Reenable sending from the overo tx method but no longer yield since we aren't
using a blocking write anyway.
This commit is contained in:
parent
6561b9b164
commit
30085d23ff
@ -127,9 +127,11 @@ static void PIOS_OVERO_WriteData(struct pios_overo_dev *overo_dev)
|
||||
|
||||
bytes_added = (overo_dev->tx_out_cb)(overo_dev->tx_out_context, writing_pointer, max_bytes, NULL, &tx_need_yield);
|
||||
|
||||
#if OVERO_USES_BLOCKING_WRITE
|
||||
if (tx_need_yield) {
|
||||
vPortYieldFromISR();
|
||||
}
|
||||
#endif
|
||||
overo_dev->writing_offset += bytes_added;
|
||||
}
|
||||
}
|
||||
@ -324,7 +326,7 @@ static void PIOS_OVERO_TxStart(uint32_t overo_id, uint16_t tx_bytes_avail)
|
||||
// DMA TX enable (enable IRQ) ?
|
||||
|
||||
// Load any pending bytes from TX fifo
|
||||
//PIOS_OVERO_WriteData(overo_dev);
|
||||
PIOS_OVERO_WriteData(overo_dev);
|
||||
}
|
||||
|
||||
static void PIOS_OVERO_RegisterRxCallback(uint32_t overo_id, pios_com_callback rx_in_cb, uint32_t context)
|
||||
|
Loading…
x
Reference in New Issue
Block a user