Ardupilot2/libraries/AP_HAL_Empty/Storage.cpp
Lucas De Marchi 00f17466a8 AP_HAL_Empty: use init() method without arguments
Override the init() method from parent class that doesn't have a
parameter since it's not used here.
2015-12-02 14:49:11 -02:00

20 lines
299 B
C++

#include <string.h>
#include "Storage.h"
using namespace Empty;
EmptyStorage::EmptyStorage()
{}
void EmptyStorage::init()
{}
void EmptyStorage::read_block(void* dst, uint16_t src, size_t n) {
memset(dst, 0, n);
}
void EmptyStorage::write_block(uint16_t loc, const void* src, size_t n)
{}