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
|
@ -36,8 +36,6 @@ void setup()
|
||||||
|
|
||||||
displayWifiCreds();
|
displayWifiCreds();
|
||||||
displayStatus();
|
displayStatus();
|
||||||
|
|
||||||
setCpuFrequencyMhz(80);
|
|
||||||
|
|
||||||
// Setup is done, light up the LED
|
// Setup is done, light up the LED
|
||||||
delay(500);
|
delay(500);
|
||||||
|
@ -57,13 +55,11 @@ void loop()
|
||||||
if (running && !wasRunning)
|
if (running && !wasRunning)
|
||||||
{
|
{
|
||||||
wasRunning = true;
|
wasRunning = true;
|
||||||
setCpuFrequencyMhz(240);
|
|
||||||
}
|
}
|
||||||
else if (!running && wasRunning)
|
else if (!running && wasRunning)
|
||||||
{
|
{
|
||||||
wasRunning = false;
|
wasRunning = false;
|
||||||
updateLastAction();
|
updateLastAction();
|
||||||
setCpuFrequencyMhz(80);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!running && ((millis() - lastActionTime) > DEEP_SLEEP_DELAY_MS))
|
if (!running && ((millis() - lastActionTime) > DEEP_SLEEP_DELAY_MS))
|
||||||
|
|
Loading…
Reference in a new issue