mirror of
https://github.com/Crocmagnon/buzzer.git
synced 2024-11-24 00:48:03 +01:00
remove cpu frequency changes
they disconnect wifi clients in AP mode
This commit is contained in:
parent
819f3e3625
commit
2d37812553
1 changed files with 0 additions and 4 deletions
|
@ -37,8 +37,6 @@ void setup()
|
|||
displayWifiCreds();
|
||||
displayStatus();
|
||||
|
||||
setCpuFrequencyMhz(80);
|
||||
|
||||
// Setup is done, light up the LED
|
||||
delay(500);
|
||||
Serial.println("All setup & ready to go!");
|
||||
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue