mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2025-04-21 12:31:19 +02:00
last working, full-duplex
This commit is contained in:
parent
8a28cf1d21
commit
51058a66f3
@ -87,6 +87,7 @@ void EXIO485::_loop(unsigned long currentMicros) {
|
|||||||
buffB[2] = (EXIORDAN);
|
buffB[2] = (EXIORDAN);
|
||||||
addTask(buffB, 3, EXIORDAN);
|
addTask(buffB, 3, EXIORDAN);
|
||||||
_currentNode = _currentNode->getNext();
|
_currentNode = _currentNode->getNext();
|
||||||
|
DIAG(F("Polling"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( hasTasks() && _currentMicros - _cycleStartTimeA >= _cycleTime){
|
if ( hasTasks() && _currentMicros - _cycleStartTimeA >= _cycleTime){
|
||||||
@ -111,7 +112,7 @@ void EXIO485::_loop(unsigned long currentMicros) {
|
|||||||
if (_txPin != -1) digitalWrite(_txPin,LOW);
|
if (_txPin != -1) digitalWrite(_txPin,LOW);
|
||||||
// delete task command after sending, for now
|
// delete task command after sending, for now
|
||||||
currentTask->rxMode = true;
|
currentTask->rxMode = true;
|
||||||
|
DIAG(F("Task"));
|
||||||
markTaskCompleted(currentTask->taskID);
|
markTaskCompleted(currentTask->taskID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user