mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-29 12:08:32 -04:00
HAL_ChibiOS: refuse unbuffered writes without DMA
we would need much more complex code to handle this
This commit is contained in:
parent
5ffcff1a79
commit
2e15285c51
@ -686,6 +686,10 @@ void UARTDriver::update_rts_line(void)
|
|||||||
*/
|
*/
|
||||||
bool UARTDriver::set_unbuffered_writes(bool on)
|
bool UARTDriver::set_unbuffered_writes(bool on)
|
||||||
{
|
{
|
||||||
|
if (on && !sdef.dma_tx) {
|
||||||
|
// we can't implement low latemcy writes safely without TX DMA
|
||||||
|
return false;
|
||||||
|
}
|
||||||
unbuffered_writes = on;
|
unbuffered_writes = on;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user