Ver código fonte

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

Neal Wilson 11 anos atrás
pai
commit
980bf25ead
1 arquivos alterados com 3 adições e 2 exclusões
  1. 3
    2
      src/dataqsdk.w

+ 3
- 2
src/dataqsdk.w Ver arquivo

@@ -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();

Carregando…
Cancelar
Salvar