mirror of https://github.com/rusefi/openblt.git
- minor code clean-up by removing some commented out code.
git-svn-id: https://svn.code.sf.net/p/openblt/code/trunk@124 5dc33758-31d5-4daf-9ae8-b24bf3d40d73
This commit is contained in:
parent
e255cf5df8
commit
f2be8d132e
|
@ -154,24 +154,9 @@ begin
|
||||||
|
|
||||||
// configure port
|
// configure port
|
||||||
configIndex := settingsIni.ReadInteger('sci', 'port', 0);
|
configIndex := settingsIni.ReadInteger('sci', 'port', 0);
|
||||||
//sciDriver.Port := pnCOM1; // init to default value
|
|
||||||
|
|
||||||
sciDriver.Port := pnCustom;
|
sciDriver.Port := pnCustom;
|
||||||
sciDriver.PortName := Format( '\\.\COM%d', [ord(configIndex + 1)] );
|
sciDriver.PortName := Format( '\\.\COM%d', [ord(configIndex + 1)] );
|
||||||
|
|
||||||
{
|
|
||||||
case configIndex of
|
|
||||||
0 : sciDriver.Port := pnCOM1;
|
|
||||||
1 : sciDriver.Port := pnCOM2;
|
|
||||||
2 : sciDriver.Port := pnCOM3;
|
|
||||||
3 : sciDriver.Port := pnCOM4;
|
|
||||||
4 : sciDriver.Port := pnCOM5;
|
|
||||||
5 : sciDriver.Port := pnCOM6;
|
|
||||||
6 : sciDriver.Port := pnCOM7;
|
|
||||||
7 : sciDriver.Port := pnCOM8;
|
|
||||||
end;
|
|
||||||
}
|
|
||||||
|
|
||||||
// release ini file object
|
// release ini file object
|
||||||
settingsIni.Free;
|
settingsIni.Free;
|
||||||
end;
|
end;
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue