Skip to content

Instantly share code, notes, and snippets.

@warped-rudi
Created February 28, 2013 11:27
Show Gist options
  • Save warped-rudi/5056101 to your computer and use it in GitHub Desktop.
Save warped-rudi/5056101 to your computer and use it in GitHub Desktop.
Forgot to rename variables in 2.1.0 and master
diff --git a/src/lib/adapter/AdapterFactory.cpp b/src/lib/adapter/AdapterFactory.cpp
index dbff5c4..42cdd0b 100644
--- a/src/lib/adapter/AdapterFactory.cpp
+++ b/src/lib/adapter/AdapterFactory.cpp
@@ -100,8 +100,8 @@ int8_t CAdapterFactory::DetectAdapters(cec_adapter_descriptor *deviceList, uint8
if (iAdaptersFound < iBufSize && CTDA995xCECAdapterDetection::FindAdapter() &&
(!strDevicePath || !strcmp(strDevicePath, CEC_TDA995x_VIRTUAL_COM)))
{
- snprintf(deviceList[iAdaptersFound].path, sizeof(deviceList[iAdaptersFound].strComPath), CEC_TDA995x_PATH);
- snprintf(deviceList[iAdaptersFound].comm, sizeof(deviceList[iAdaptersFound].strComName), CEC_TDA995x_VIRTUAL_COM);
+ snprintf(deviceList[iAdaptersFound].strComPath, sizeof(deviceList[iAdaptersFound].strComPath), CEC_TDA995x_PATH);
+ snprintf(deviceList[iAdaptersFound].strComName, sizeof(deviceList[iAdaptersFound].strComName), CEC_TDA995x_VIRTUAL_COM);
deviceList[iAdaptersFound].iVendorId = TDA995X_ADAPTER_VID;
deviceList[iAdaptersFound].iProductId = TDA995X_ADAPTER_PID;
deviceList[iAdaptersFound].adapterType = ADAPTERTYPE_TDA995x;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment