fixed bug with transmition timing

pull/6/head
Tyler Johnson 2020-07-21 10:36:32 -04:00
rodzic c319e05804
commit 81da46dde4
1 zmienionych plików z 7 dodań i 2 usunięć

Wyświetl plik

@ -290,8 +290,13 @@ void loop() {
sleepSecs = secsTillTx;
}
sleepSeconds(sleepSecs);
secsTillTx -= secsTillPing;
secsTillPing = 0;
if (secsTillPing <= secsTillTx) {
secsTillTx -= secsTillPing;
secsTillPing = 0;
} else {
secsTillPing -= secsTillTx;
secsTillTx = 0;
}
}