瀏覽代碼

Merge branch 'development' of https://github.com/N3Roaster/typica into development

Neal Wilson 11 年之前
父節點
當前提交
980bf25ead
共有 1 個檔案被更改,包括 3 行新增2 行删除
  1. 3
    2
      src/dataqsdk.w

+ 3
- 2
src/dataqsdk.w 查看文件

@@ -297,6 +297,7 @@ void DataqSdkDeviceImplementation::run()
297 297
 	if(!driver->load())
298 298
 	{
299 299
 		error = 1; // Failed to load driver.
300
+		qDebug() << "Failed to load driver: " << device;
300 301
 		return;
301 302
 	}
302 303
 	di_open = (FPDIOPEN)driver->resolve("di_open");
@@ -454,11 +455,11 @@ DataqSdkDevice::DataqSdkDevice(QString device) : imp(new DataqSdkDeviceImplement
454 455
 		portString.chop(1);
455 456
 		if(portString.toInt() < 10)
456 457
 		{
457
-			imp->device = QString("DI10%1INT.DLL").arg(portString);
458
+			imp->device = QString("DI10%1NT.DLL").arg(portString);
458 459
 		}
459 460
 		else
460 461
 		{
461
-			imp->device = QString("DI1%1INT.DLL").arg(portString);
462
+			imp->device = QString("DI1%1NT.DLL").arg(portString);
462 463
 		}
463 464
 		imp->deviceNumber = 0x12C02D00;
464 465
 		imp->deviceNumber += portString.toInt();

Loading…
取消
儲存