diff --git a/features/unsupported/USBHost/USBHostMSD/USBHostMSD.cpp b/features/unsupported/USBHost/USBHostMSD/USBHostMSD.cpp index 6279f0f528..9e1c3c8c96 100644 --- a/features/unsupported/USBHost/USBHostMSD/USBHostMSD.cpp +++ b/features/unsupported/USBHost/USBHostMSD/USBHostMSD.cpp @@ -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 diff --git a/features/unsupported/USBHost/USBHostMSD/USBHostMSD.h b/features/unsupported/USBHost/USBHostMSD/USBHostMSD.h index 07233d010a..7ce52fa981 100644 --- a/features/unsupported/USBHost/USBHostMSD/USBHostMSD.h +++ b/features/unsupported/USBHost/USBHostMSD/USBHostMSD.h @@ -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;