AP_HAL_Linux: reduce scope of dummy buffer

This commit is contained in:
Lucas De Marchi 2016-10-05 12:58:49 -03:00
parent 76f1e4243a
commit d60b4842b6
1 changed files with 2 additions and 2 deletions

View File

@ -111,10 +111,10 @@ int SPIUARTDriver::_write_fd(const uint8_t *buf, uint16_t size)
return ret;
}
static uint8_t ff_stub[300] = {0xff};
int SPIUARTDriver::_read_fd(uint8_t *buf, uint16_t n)
{
static uint8_t ff_stub[100] = {0xff};
if (_external) {
return UARTDriver::_read_fd(buf, n);
}