renvoie paramètres apres reconnexion V2
This commit is contained in:
parent
68e3f9bb85
commit
cd6ad218dd
3 changed files with 3 additions and 2 deletions
|
|
@ -137,6 +137,7 @@ namespace DMX2
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
serial = new SerialPort (portname, 460800, Parity.None, 8, StopBits.One);
|
serial = new SerialPort (portname, 460800, Parity.None, 8, StopBits.One);
|
||||||
|
Console.WriteLine (portname);
|
||||||
//serial.DtrEnable = false;
|
//serial.DtrEnable = false;
|
||||||
//serial.ReadTimeout = 200;
|
//serial.ReadTimeout = 200;
|
||||||
//serial.WriteTimeout = 200;
|
//serial.WriteTimeout = 200;
|
||||||
|
|
@ -195,7 +196,7 @@ namespace DMX2
|
||||||
if(!WaitForData (1)) {
|
if(!WaitForData (1)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
paramFlag = true;
|
||||||
serial.Read(tmpBuffer,0,1);
|
serial.Read(tmpBuffer,0,1);
|
||||||
if(tmpBuffer[0] == 65) return true;
|
if(tmpBuffer[0] == 65) return true;
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
<target-gtk-version>2.12</target-gtk-version>
|
<target-gtk-version>2.12</target-gtk-version>
|
||||||
</configuration>
|
</configuration>
|
||||||
<import>
|
<import>
|
||||||
<widget-library name="../bin/Release/DMX-2.0.exe" internal="true" />
|
<widget-library name="../bin/Debug/DMX-2.0.exe" internal="true" />
|
||||||
</import>
|
</import>
|
||||||
<icon-factory>
|
<icon-factory>
|
||||||
<icon-set id="tirettes">
|
<icon-set id="tirettes">
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Reference in a new issue