mirror of
https://github.com/Crocmagnon/buzzer.git
synced 2024-10-10 12:57:40 +02: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
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue