From 2d37812553f92be81e548d765cf7e8e057be8e33 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Mon, 20 Mar 2023 10:38:52 +0100 Subject: [PATCH] remove cpu frequency changes they disconnect wifi clients in AP mode --- src/main.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 332a587..7faaa60 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -36,8 +36,6 @@ void setup() displayWifiCreds(); displayStatus(); - - setCpuFrequencyMhz(80); // Setup is done, light up the LED delay(500); @@ -57,13 +55,11 @@ void loop() if (running && !wasRunning) { wasRunning = true; - setCpuFrequencyMhz(240); } else if (!running && wasRunning) { wasRunning = false; updateLastAction(); - setCpuFrequencyMhz(80); } if (!running && ((millis() - lastActionTime) > DEEP_SLEEP_DELAY_MS))