diff options
author | px4dev <px4@purgatory.org> | 2013-07-05 20:37:05 -0700 |
---|---|---|
committer | px4dev <px4@purgatory.org> | 2013-07-05 20:37:05 -0700 |
commit | 3c8c596ac7a2eacc3f4ac047a58bd5dceb36a203 (patch) | |
tree | a43d20049b8f72eb803aca41229f1bb72763c2ff /src/modules/px4iofirmware | |
parent | bcfb713fe9f123db6d594315465b30dc7210be75 (diff) | |
download | px4-firmware-3c8c596ac7a2eacc3f4ac047a58bd5dceb36a203.tar.gz px4-firmware-3c8c596ac7a2eacc3f4ac047a58bd5dceb36a203.tar.bz2 px4-firmware-3c8c596ac7a2eacc3f4ac047a58bd5dceb36a203.zip |
Enable handling for short-packet reception on FMU using the line-idle interrupt from the UART. Enable short packets at both ends.
Diffstat (limited to 'src/modules/px4iofirmware')
-rw-r--r-- | src/modules/px4iofirmware/serial.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/px4iofirmware/serial.c b/src/modules/px4iofirmware/serial.c index 21ecde727..b91819373 100644 --- a/src/modules/px4iofirmware/serial.c +++ b/src/modules/px4iofirmware/serial.c @@ -269,7 +269,7 @@ rx_dma_callback(DMA_HANDLE handle, uint8_t status, void *arg) tx_dma, (uint32_t)&rDR, (uint32_t)&dma_packet, - sizeof(dma_packet), /* XXX should be PKT_LENGTH() */ + PKT_SIZE(dma_packet), DMA_CCR_DIR | DMA_CCR_MINC | DMA_CCR_PSIZE_8BITS | |