Skip to content

Commit 04d0b0d

Browse files
authored
Merge pull request #10654 from desowin/usbhost-msd
USBHostMSD: Implement BlockDevice get_type()
2 parents f174490 + 3116f32 commit 04d0b0d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

features/unsupported/USBHost/USBHostMSD/USBHostMSD.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,4 +403,9 @@ bd_size_t USBHostMSD::size() const
403403
USB_DBG("FILESYSTEM: size ");
404404
return (disk_init ? (bd_size_t)blockSize : 0);
405405
}
406+
407+
const char *USBHostMSD::get_type() const
408+
{
409+
return "USBMSD";
410+
}
406411
#endif

features/unsupported/USBHost/USBHostMSD/USBHostMSD.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ class USBHostMSD : public IUSBEnumerator, public BlockDevice
6363
virtual bd_size_t get_program_size() const;
6464
virtual bd_size_t get_erase_size() const;
6565
virtual bd_size_t size() const;
66+
virtual const char *get_type() const;
6667

6768

6869

0 commit comments

Comments
 (0)