1
0
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:
travis-farmer 2024-12-26 15:40:20 -05:00
parent 8a28cf1d21
commit 51058a66f3
No known key found for this signature in database
GPG Key ID: 0BC296791D14CB35

View File

@ -87,6 +87,7 @@ void EXIO485::_loop(unsigned long currentMicros) {
buffB[2] = (EXIORDAN);
addTask(buffB, 3, EXIORDAN);
_currentNode = _currentNode->getNext();
DIAG(F("Polling"));
}
if ( hasTasks() && _currentMicros - _cycleStartTimeA >= _cycleTime){
@ -111,7 +112,7 @@ void EXIO485::_loop(unsigned long currentMicros) {
if (_txPin != -1) digitalWrite(_txPin,LOW);
// delete task command after sending, for now
currentTask->rxMode = true;
DIAG(F("Task"));
markTaskCompleted(currentTask->taskID);
}
}