DataFlash: prevent valgrind errors from Empty driver

This commit is contained in:
Andrew Tridgell 2013-10-08 11:08:53 +11:00
parent 12af23bb7c
commit 2422b94292

View File

@ -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 ***