kopia lustrzana https://github.com/espressif/esp-idf
Merge branch 'fix/usb_example_newlib_nano' into 'master'
fix(usb/example): Fixed MSC compilation with Newlib Nano format Closes IEC-60 See merge request espressif/esp-idf!28702pull/12800/head
commit
81031490dc
|
@ -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)
|
||||
|
|
Ładowanie…
Reference in New Issue