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: Interface to UserHIDRecordEvent()
|
||||
* FIXED: Allow DFU to support multiple flash devices
|
||||
|
||||
1.3.0
|
||||
-----
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user