InverseRE / antiflood

domestic automation
GNU General Public License v3.0
2 stars 0 forks source link

Idling serv-task. #27

Closed InverseRE closed 5 years ago

InverseRE commented 5 years ago

Serv-task should be in a wait mode. Ref #25 Commit 000d619 Commit 7788295

InverseRE commented 5 years ago

scheduling_tasks.txt:60

InverseRE commented 5 years ago

BUG: seems like tx/rx is good, but response packets do not get client back.

InverseRE commented 5 years ago

a test for the transmit complete flag(TXC0)

InverseRE commented 5 years ago
void sleep()
{
    // ...
    if (Serial.avaliable) {
        return;
    } else {
        Serial.end()
    }
    // ...
    Serial.begin()
}

===>

HardwareSerial.cpp:417

void Serial.transmit_complete()
{
    while (_tx_buffer->head != _tx_buffer->tail);
}