Skip to content

Commit

Permalink
Fixed const attribute mismatch on size function
Browse files Browse the repository at this point in the history
  • Loading branch information
geky committed Mar 20, 2017
1 parent 58c52d3 commit aabeb8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion features/filesystem/sd/SDBlockDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ bd_size_t SDBlockDevice::get_erase_size() const
return 512;
}

bd_size_t SDBlockDevice::size()
bd_size_t SDBlockDevice::size() const
{
_lock.lock();
bd_size_t sectors = _sectors;
Expand Down
4 changes: 2 additions & 2 deletions features/filesystem/sd/SDBlockDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class SDBlockDevice : public BlockDevice {
*
* @return Size of the underlying device in bytes
*/
virtual bd_size_t size();
virtual bd_size_t size() const;

/** Enable or disable debugging
*
Expand Down Expand Up @@ -149,7 +149,7 @@ class SDBlockDevice : public BlockDevice {
unsigned _block_size;
bool _is_initialized;
bool _dbg;
Mutex _lock;
mutable Mutex _lock;
};


Expand Down

0 comments on commit aabeb8c

Please sign in to comment.