From b1da652d41453c93bcfca5a297cef1ab26458170 Mon Sep 17 00:00:00 2001 From: geeksville Date: Sat, 1 Feb 2020 05:39:35 -0800 Subject: [PATCH] let the main cpu mostly sleep until we have gps lock --- main/main.ino | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main/main.ino b/main/main.ino index d9b6dd4..61a9821 100644 --- a/main/main.ino +++ b/main/main.ino @@ -392,6 +392,10 @@ void loop() { sleep(); } #endif + + // No GPS lock yet, let the OS put the main CPU in low power mode for 100ms (or until another interrupt comes in) + // i.e. don't just keep spinning in loop as fast as we can. + delay(100); } } }