mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
DataFlash: Delete unused BufferRead function
Signed-off-by: Daniel Frenzel <dgdanielf@gmail.com>
This commit is contained in:
parent
dd705e3fdb
commit
74460cd526
@ -323,18 +323,7 @@ bool DataFlash_APM2::BlockRead(uint8_t BufferNum, uint16_t IntPageAdr, void *pBu
|
||||
return true;
|
||||
}
|
||||
|
||||
uint8_t DataFlash_APM2::BufferRead (uint8_t BufferNum, uint16_t IntPageAdr)
|
||||
{
|
||||
uint8_t tmp;
|
||||
if (!BlockRead(BufferNum, IntPageAdr, &tmp, 1)) {
|
||||
return 0;
|
||||
}
|
||||
return tmp;
|
||||
}
|
||||
|
||||
|
||||
// *** END OF INTERNAL FUNCTIONS ***
|
||||
|
||||
void DataFlash_APM2::PageErase (uint16_t PageAdr)
|
||||
{
|
||||
if (!_sem_take(1))
|
||||
|
@ -32,7 +32,6 @@ private:
|
||||
// the data fits within the page, otherwise it will wrap to the
|
||||
// start of the page
|
||||
bool BlockRead(uint8_t BufferNum, uint16_t IntPageAdr, void *pBuffer, uint16_t size);
|
||||
uint8_t BufferRead (uint8_t BufferNum, uint16_t IntPageAdr);
|
||||
|
||||
void PageErase (uint16_t PageAdr);
|
||||
void BlockErase (uint16_t BlockAdr);
|
||||
|
Loading…
Reference in New Issue
Block a user