repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bump to 2.0.4. dropped obsolete cec-config
[deb_libcec.git]
/
src
/
lib
/
adapter
/
Pulse-Eight
/
USBCECAdapterDetection.cpp
diff --git
a/src/lib/adapter/Pulse-Eight/USBCECAdapterDetection.cpp
b/src/lib/adapter/Pulse-Eight/USBCECAdapterDetection.cpp
index 5d72b5efbbb7ab9a1916e487d00cb9e62259d8cf..433a3d325df954e29fdf698e998cd451f2f0b68c 100644
(file)
--- a/
src/lib/adapter/Pulse-Eight/USBCECAdapterDetection.cpp
+++ b/
src/lib/adapter/Pulse-Eight/USBCECAdapterDetection.cpp
@@
-427,6
+427,8
@@
uint8_t CUSBCECAdapterDetection::FindAdapters(cec_adapter *deviceList, uint8_t i
for (i = 0; i < 8; ++i)
{
(void)snprintf(devicePath, sizeof(devicePath), "/dev/ttyU%d", i);
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);
if (!access(devicePath, 0))
{
snprintf(deviceList[iFound].path, sizeof(deviceList[iFound].path), "%s", devicePath);
@@
-436,11
+438,11
@@
uint8_t CUSBCECAdapterDetection::FindAdapters(cec_adapter *deviceList, uint8_t i
}
#else
//silence "unused" warnings
}
#else
//silence "unused" warnings
-
void *tmp = (void*)deviceList
;
-
tmp = (void *)strDevicePath
;
+
((void)deviceList)
;
+
((void) strDevicePath)
;
#endif
#endif
- iBufSize = 0; /* silence "unused" warning on linux/osx */
+ iBufSize = 0;
if(!iBufSize){}
/* silence "unused" warning on linux/osx */
return iFound;
}
return iFound;
}