mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 01:18:29 -04:00
DataFlash: prevent valgrind errors from Empty driver
This commit is contained in:
parent
12af23bb7c
commit
2422b94292
@ -70,7 +70,10 @@ void DataFlash_Empty::BlockWrite(uint8_t BufferNum, uint16_t IntPageAdr,
|
||||
|
||||
bool DataFlash_Empty::BlockRead(uint8_t BufferNum, uint16_t IntPageAdr,
|
||||
void *pBuffer, uint16_t size)
|
||||
{ return false; }
|
||||
{
|
||||
memset(pBuffer, 0, size);
|
||||
return false;
|
||||
}
|
||||
|
||||
// *** END OF INTERNAL FUNCTIONS ***
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user