fix(usb/example): Fixed MSC compilation with Newlib Nano format

https://github.com/espressif/idf-extra-components/issues/254
This commit is contained in:
Tomas Rezucha 2024-01-25 09:51:51 +01:00
parent a5b261f699
commit e511905fd2

View File

@ -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)