Merge pull request #10654 from desowin/usbhost-msd

USBHostMSD: Implement BlockDevice get_type()
pull/10769/head
Martin Kojtal 2019-06-04 12:56:52 +01:00 committed by GitHub
commit 04d0b0d1c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;