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

View File

@ -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);
} }