Skip to content

Commit 783623c

Browse files
fix Windows cannot use -board= in monitor cmd issue
Fixes: f3d0f94 ("LF-14105 fix the issue that -auto does not work in the Windows platform") Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
1 parent 7da6d30 commit 783623c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

chip.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,10 +359,10 @@ void* ft4232h_eeprom_create(char* chip_specification, void* parent)
359359
return NULL;
360360
}
361361

362-
#if defined(__linux__) || defined(__APPLE__)
363362
ftee->ftdi_info = &g_ftdi_info[0];
364-
#else
365-
ftee->ftdi_info = &g_ftdi_info[1];
363+
#ifdef _WIN32
364+
if (ftee->ftdi_info->ftdi == NULL && g_ftdi_info[1].ftdi)
365+
ftee->ftdi_info = &g_ftdi_info[1];
366366
#endif
367367
ftee->eeprom_device.device.parent = parent;
368368
ftee->eeprom_device.eeprom_read = ft4232h_eeprom_read;

0 commit comments

Comments
 (0)