forked from PAWPAW-Mirror/lib_xua
Allow DFU to support multiple flash devices
This commit is contained in:
@@ -6,6 +6,7 @@ lib_xua Change Log
|
|||||||
|
|
||||||
* CHANGED: HID event ID from list to bit and byte location in HID Report
|
* CHANGED: HID event ID from list to bit and byte location in HID Report
|
||||||
* CHANGED: Interface to UserHIDRecordEvent()
|
* CHANGED: Interface to UserHIDRecordEvent()
|
||||||
|
* FIXED: Allow DFU to support multiple flash devices
|
||||||
|
|
||||||
1.3.0
|
1.3.0
|
||||||
-----
|
-----
|
||||||
|
|||||||
@@ -90,9 +90,9 @@ int flash_cmd_enable_ports()
|
|||||||
|
|
||||||
#ifdef DFU_FLASH_DEVICE
|
#ifdef DFU_FLASH_DEVICE
|
||||||
#ifdef QUAD_SPI_FLASH
|
#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
|
#else
|
||||||
result = fl_connectToDevice(&p_flash, flash_devices, 1);
|
result = fl_connectToDevice(&p_flash, flash_devices, sizeof(flash_devices) / sizeof(fl_DeviceSpec);
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
/* Use default flash list */
|
/* Use default flash list */
|
||||||
|
|||||||
Reference in New Issue
Block a user