for (i = 0; i < 8; ++i)
{
(void)snprintf(devicePath, sizeof(devicePath), "/dev/ttyU%d", i);
+ if (strDevicePath && strcmp(devicePath, strDevicePath) != 0)
+ continue;
if (!access(devicePath, 0))
{
snprintf(deviceList[iFound].path, sizeof(deviceList[iFound].path), "%s", devicePath);
tmp = (void *)strDevicePath;
#endif
- iBufSize = 0; /* silence "unused" warning on linux/osx */
+ iBufSize = 0; if(!iBufSize){} /* silence "unused" warning on linux/osx */
return iFound;
}