DataFlash: correct repeated FMT logging bug

This commit is contained in:
Peter Barker 2017-03-30 19:30:45 +11:00 committed by Andrew Tridgell
parent dcc4f69f7c
commit 4cb43b1c27
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ public:
virtual void ListAvailableLogs(AP_HAL::BetterStream *port) = 0; virtual void ListAvailableLogs(AP_HAL::BetterStream *port) = 0;
void EnableWrites(bool enable) { _writes_enabled = enable; } void EnableWrites(bool enable) { _writes_enabled = enable; }
bool logging_started(void) const { return log_write_started; } virtual bool logging_started(void) const { return log_write_started; }
virtual void Init() { virtual void Init() {
_writes_enabled = true; _writes_enabled = true;

View File

@ -32,7 +32,7 @@ public:
// initialisation // initialisation
void Init() override; void Init() override;
bool logging_started() { return _logging_started; } bool logging_started() const override { return _logging_started; }
void stop_logging(); void stop_logging();