File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,10 @@ class BlockDevice
91
91
* @param size Size to erase in bytes, must be a multiple of erase block size
92
92
* @return 0 on success, negative error code on failure
93
93
*/
94
- virtual int erase (bd_addr_t addr, bd_size_t size) = 0;
94
+ virtual int erase (bd_addr_t addr, bd_size_t size)
95
+ {
96
+ return 0 ;
97
+ }
95
98
96
99
/* * Get the size of a readable block
97
100
*
@@ -111,7 +114,10 @@ class BlockDevice
111
114
* @return Size of a eraseable block in bytes
112
115
* @note Must be a multiple of the program size
113
116
*/
114
- virtual bd_size_t get_erase_size () const = 0;
117
+ virtual bd_size_t get_erase_size () const
118
+ {
119
+ return get_program_size ();
120
+ }
115
121
116
122
/* * Get the total size of the underlying device
117
123
*
You can’t perform that action at this time.
0 commit comments