mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-30 12:38:33 -04:00
AP_HAL_Linux: reduce scope of dummy buffer
This commit is contained in:
parent
76f1e4243a
commit
d60b4842b6
@ -111,10 +111,10 @@ int SPIUARTDriver::_write_fd(const uint8_t *buf, uint16_t size)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static uint8_t ff_stub[300] = {0xff};
|
|
||||||
|
|
||||||
int SPIUARTDriver::_read_fd(uint8_t *buf, uint16_t n)
|
int SPIUARTDriver::_read_fd(uint8_t *buf, uint16_t n)
|
||||||
{
|
{
|
||||||
|
static uint8_t ff_stub[100] = {0xff};
|
||||||
|
|
||||||
if (_external) {
|
if (_external) {
|
||||||
return UARTDriver::_read_fd(buf, n);
|
return UARTDriver::_read_fd(buf, n);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user