kopia lustrzana https://github.com/lightaprs/LightAPRS-1.0
merged two if statements
rodzic
1d4658d63b
commit
edf282ad85
|
@ -286,17 +286,14 @@ void loop() {
|
|||
// Serial.println(round((millis()-loop_start)/1000));
|
||||
if (secsTillPing <= secsTillTx) {
|
||||
sleepSecs = secsTillPing;
|
||||
} else {
|
||||
sleepSecs = secsTillTx;
|
||||
}
|
||||
sleepSeconds(sleepSecs);
|
||||
if (secsTillPing <= secsTillTx) {
|
||||
secsTillTx -= secsTillPing;
|
||||
secsTillPing = 0;
|
||||
} else {
|
||||
sleepSecs = secsTillTx;
|
||||
secsTillPing -= secsTillTx;
|
||||
secsTillTx = 0;
|
||||
}
|
||||
sleepSeconds(sleepSecs);
|
||||
}
|
||||
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue