mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
Dodana blokada odbioru danych (wpis w pliku eu07.ini) UWAGA! nie testowane bo nie mogę otworzyć projektu.
This commit is contained in:
@@ -174,7 +174,7 @@ bool MWDComm::Run() // wywo
|
||||
if(GetMWDState())
|
||||
{
|
||||
SendData();
|
||||
ReadData();
|
||||
if (Global::bMWDInputDataEnable) ReadData();
|
||||
return 1;
|
||||
}else
|
||||
{
|
||||
|
||||
@@ -552,6 +552,8 @@ void Global::ConfigParse(TQueryParserComp *qp, cParser *cp)
|
||||
if (bMWDdebugEnable) WriteLog("PortName " + AnsiString(iMWDBaudrate));
|
||||
}else if (str == AnsiString("mwdbreakenable")){ // czy w³¹czyæ obs³ugê hamulców
|
||||
bMWDBreakEnable = (GetNextSymbol().LowerCase() == AnsiString("yes"));
|
||||
}else if (str == AnsiString("mwdinputenable")){
|
||||
bMWDInputDataEnable = (GetNextSymbol().LowerCase() == AnsiString("yes"));
|
||||
}else if(str == AnsiString("mwdbreak")) // wartoϾ max dla potencjometru hamulca zasadniczego
|
||||
{
|
||||
i = GetNextSymbol().ToIntDef(-1); // numer wejœcia
|
||||
|
||||
Reference in New Issue
Block a user