HAL_PX4: Storage::_timer_tick is an override

This commit is contained in:
Andrew Tridgell 2018-01-27 13:32:12 +11:00
parent 26161ee467
commit 0f079deebf
2 changed files with 2 additions and 2 deletions

View File

@ -407,7 +407,7 @@ void *PX4Scheduler::_storage_thread(void *arg)
// process any pending storage writes
perf_begin(sched->_perf_storage_timer);
((PX4Storage *)hal.storage)->_timer_tick();
hal.storage->_timer_tick();
perf_end(sched->_perf_storage_timer);
}
return nullptr;

View File

@ -35,7 +35,7 @@ public:
void read_block(void *dst, uint16_t src, size_t n);
void write_block(uint16_t dst, const void* src, size_t n);
void _timer_tick(void);
void _timer_tick(void) override;
private:
volatile bool _initialised;