Allow DFU to support multiple flash devices

This commit is contained in:
lucianom
2021-06-25 10:48:59 +01:00
parent 8c7dfab9f2
commit 687c06864c
2 changed files with 3 additions and 2 deletions

View File

@@ -6,6 +6,7 @@ lib_xua Change Log
* CHANGED: HID event ID from list to bit and byte location in HID Report
* CHANGED: Interface to UserHIDRecordEvent()
* FIXED: Allow DFU to support multiple flash devices
1.3.0
-----

View File

@@ -90,9 +90,9 @@ int flash_cmd_enable_ports()
#ifdef DFU_FLASH_DEVICE
#ifdef QUAD_SPI_FLASH
result = fl_connectToDevice(&p_qflash, flash_devices, 1);
result = fl_connectToDevice(&p_qflash, flash_devices, sizeof(flash_devices) / sizeof(fl_QuadDeviceSpec);
#else
result = fl_connectToDevice(&p_flash, flash_devices, 1);
result = fl_connectToDevice(&p_flash, flash_devices, sizeof(flash_devices) / sizeof(fl_DeviceSpec);
#endif
#else
/* Use default flash list */