USBHostMSD: Implement BlockDevice get_type()

This makes it possible to create instances of USBHostMSD class.
pull/10654/head
Tomasz Moń 2019-05-24 12:40:30 +02:00
parent c4cc9c4f1b
commit 3116f329d7
2 changed files with 6 additions and 0 deletions

View File

@ -403,4 +403,9 @@ bd_size_t USBHostMSD::size() const
USB_DBG("FILESYSTEM: size ");
return (disk_init ? (bd_size_t)blockSize : 0);
}
const char *USBHostMSD::get_type() const
{
return "USBMSD";
}
#endif

View File

@ -63,6 +63,7 @@ public:
virtual bd_size_t get_program_size() const;
virtual bd_size_t get_erase_size() const;
virtual bd_size_t size() const;
virtual const char *get_type() const;