DataFlash: correct consts on CardInserted

This commit is contained in:
Peter Barker 2017-06-15 11:19:54 +10:00 committed by Francisco Ferreira
parent 244365767d
commit 001d3a7118
4 changed files with 4 additions and 4 deletions

View File

@ -18,7 +18,7 @@ public:
void internal_error();
virtual bool CardInserted(void) = 0;
virtual bool CardInserted(void) const = 0;
// erase handling
virtual void EraseAll() = 0;

View File

@ -214,7 +214,7 @@ uint32_t DataFlash_File::bufferspace_available()
}
// return true for CardInserted() if we successfully initialized
bool DataFlash_File::CardInserted(void)
bool DataFlash_File::CardInserted(void) const
{
return _initialised && !_open_error;
}

View File

@ -33,7 +33,7 @@ public:
// initialisation
void Init() override;
bool CardInserted(void) override;
bool CardInserted(void) const override;
// erase handling
void EraseAll() override;

View File

@ -40,7 +40,7 @@ public:
bool is_critical) override;
// initialisation
bool CardInserted(void) override { return true; }
bool CardInserted(void) const override { return true; }
// erase handling
void EraseAll() override {}