mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix(usb/example): Fixed MSC compilation with Newlib Nano format
https://github.com/espressif/idf-extra-components/issues/254
This commit is contained in:
parent
a5b261f699
commit
e511905fd2
@ -10,6 +10,7 @@
|
||||
#include <sys/stat.h>
|
||||
#include <dirent.h>
|
||||
#include <inttypes.h>
|
||||
#include "sdkconfig.h"
|
||||
#include "freertos/FreeRTOS.h"
|
||||
#include "freertos/task.h"
|
||||
#include "freertos/queue.h"
|
||||
@ -103,9 +104,11 @@ static void print_device_info(msc_host_device_info_t *info)
|
||||
printf("\t Sector count: %"PRIu32"\n", info->sector_count);
|
||||
printf("\t PID: 0x%04X \n", info->idProduct);
|
||||
printf("\t VID: 0x%04X \n", info->idVendor);
|
||||
#ifndef CONFIG_NEWLIB_NANO_FORMAT
|
||||
wprintf(L"\t iProduct: %S \n", info->iProduct);
|
||||
wprintf(L"\t iManufacturer: %S \n", info->iManufacturer);
|
||||
wprintf(L"\t iSerialNumber: %S \n", info->iSerialNumber);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void file_operations(void)
|
||||
|
Loading…
x
Reference in New Issue
Block a user