From f30dcd3c7dd2d8003a05743416dfeac370bb24f1 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 4 Jul 2024 13:22:11 -0400 Subject: [PATCH] Update main.c print loop time, no gps --- main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.c b/main.c index 5b3b85c5..2332d47f 100644 --- a/main.c +++ b/main.c @@ -563,8 +563,8 @@ int main(int argc, char * argv[]) { // #endif fclose(uptime_file); -// printf("++++ Loop time: %5.3f sec +++++\n", (millis() - loopTime)/1000.0); -// fflush(stdout); + printf("++++ Loop time: %5.3f sec +++++\n", (millis() - loopTime)/1000.0); + fflush(stdout); loopTime = millis(); { @@ -675,8 +675,8 @@ int main(int argc, char * argv[]) { if ((millis() - newGpsTime) > 60000) { longitude += rnd_float(-0.05, 0.05) / 100.0; // was .05 latitude += rnd_float(-0.05, 0.05) / 100.0; - printf("GPS Location with Rnd: %f, %f \n", latitude, longitude); - printf("GPS Location with Rnd: APRS %07.2f, %08.2f \n", toAprsFormat(latitude), toAprsFormat(longitude)); +// printf("GPS Location with Rnd: %f, %f \n", latitude, longitude); +// printf("GPS Location with Rnd: APRS %07.2f, %08.2f \n", toAprsFormat(latitude), toAprsFormat(longitude)); newGpsTime = millis(); }