Line 206... |
Line 206... |
206 |
{ |
206 |
{ |
207 |
// Select by Description / Serial Number / Location |
207 |
// Select by Description / Serial Number / Location |
208 |
if (findDeviceBy==FT_OPEN_BY_LOCATION) |
208 |
if (findDeviceBy==FT_OPEN_BY_LOCATION) |
209 |
{ |
209 |
{ |
210 |
// Open device (location is number, not string) |
210 |
// Open device (location is number, not string) |
211 |
int findDeviceByInt = atoiEx(findDeviceByStr); |
211 |
long int findDeviceByInt = atoiEx(findDeviceByStr); |
212 |
ftStatus = FT_OpenEx((void*)findDeviceByInt, findDeviceBy, &ftHandle); |
212 |
ftStatus = FT_OpenEx((void*)findDeviceByInt, findDeviceBy, &ftHandle); |
213 |
} |
213 |
} |
214 |
else |
214 |
else |
215 |
{ |
215 |
{ |
216 |
ftStatus = FT_OpenEx(findDeviceByStr, findDeviceBy, &ftHandle); |
216 |
ftStatus = FT_OpenEx(findDeviceByStr, findDeviceBy, &ftHandle); |