added way to keep track of loop number

pull/5/head
Tyler Johnson 2020-07-18 10:14:25 -04:00 zatwierdzone przez Christopher Reder
rodzic ada82ace2c
commit 9c1fdc786b
1 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -105,6 +105,7 @@ struct txZones zones[NUM_ZONES] = {
unsigned int GPSWait=10; //seconds sleep if no GPS.
int loopNumber = 0; // Number of times the loop has been called.
unsigned int BeaconWait=1; //seconds sleep for next beacon (TX).
unsigned int GPSPingWait=1; //seconds sleep for next alt test
unsigned int BattWait=60; //seconds sleep if super capacitors/batteries are below BattMin (important if power source is solar panel)
@ -185,6 +186,12 @@ void loop() {
float tempC;
float pressure;
float loop_start = millis();
loopNumber++;
#if defined(DEVMODE)
Serial.println("LoopNumber -> ");
Serial.println(loopNumber);
#endif
wdt_reset();