We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf336e0 commit db09b41Copy full SHA for db09b41
1 file changed
lib/storage/storage.cpp
@@ -158,6 +158,12 @@ void Storage::begin()
158
MSC.mediaPresent(true);
159
160
// Set disk size, block size should be 512 regardless of spi flash page size
161
- MSC.begin(FFat.totalBytes() / blockSize, blockSize);
162
- USB.begin();
+ if (!MSC.begin(FFat.totalBytes() / blockSize, blockSize))
+ {
163
+ ESP_LOGE(TAG, "starting USB MSC failed");
164
+ }
165
+ if (!USB.begin())
166
167
+ ESP_LOGE(TAG, "starting USB failed");
168
169
}
0 commit comments