1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-17 02:52:12 +01:00

Disable writing to the overo driver for every pios_com write again. It drives

up system consumption too much, although now data will get lost :(.
This commit is contained in:
James Cotton 2012-07-25 13:14:59 -05:00
parent 41f80eb34f
commit 735c009843

View File

@ -127,7 +127,7 @@ 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 defined(OVERO_USES_BLOCKING_WRITE)
if (tx_need_yield) {
vPortYieldFromISR();
}
@ -326,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)